pycatia.mec_mod_interfaces.planar_face¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.mec_mod_interfaces.planar_face.PlanarFace(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.ReferenceMecModInterfaces.BoundaryMecModInterfaces.FacePlanarFace2-D boundary with a planar geometry.Role: This Boundary object may be, for example, the face of acube.You will create a PlanarFace object using the Shapes.GetBoundary ,HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2method. Then, you pass it to the operator (such as ShapeFactory.AddNewDraft).The lifetime of a PlanarFace object is limited, see Boundary.Example:This example asks the end user to select a face and two planar faces, andcreates a draft on these faces:Dim InputObjectType(0)Set Document = CATIA.ActiveDocumentSet Selection = Document.Selection‘We propose to the user that he select the face to draftInputObjectType(0)=”Face”Status=Selection.SelectElement2(InputObjectType,”Select the face todraft”,true)if (Status = “cancel”) then Exit SubSet FaceToDraft = Selection.Item(1).ValueSelection.Clear‘We propose to the user that he select the neutral faceInputObjectType(0)=”PlanarFace”Status=Selection.SelectElement2(InputObjectType,”Select the neutralface”,true)if (Status = “cancel”) then Exit SubSet NeutralFace = Selection.Item(1).ValueSelection.Clear‘We propose to the user that he select the partingelementInputObjectType(0)=”PlanarFace”Status=Selection.SelectElement2(InputObjectType,”Select the partingelement”,true)if (Status = “cancel”) then Exit SubSet PartingElement = Selection.Item(1).ValueSet Draft = ShapeFactory.AddNewDraft(FaceToDraft,NeutralFace,0,PartingElement,0.0,0.0,1.0,0,5.0,0)Set DraftDomains = Draft.DraftDomainsSet DraftDomain = DraftDomains.Item(1)DraftDomain.SetPullingDirection 0.0, 0.0,1.0Document.Part.Update- get_first_axis(o_first_axis: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFirstAxis(CATSafeArrayVariant oFirstAxis)Returns the planar face first axisParameters:oFirstAxis[0]The X Coordinate of the planar face first axisoFirstAxis[1]The Y Coordinate of the planar face first axisoFirstAxis[2]The Z Coordinate of the planar face first axis
- Parameters:
o_first_axis (tuple) –
- Return type:
None
- get_origin(o_origin: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetOrigin(CATSafeArrayVariant oOrigin)Returns the origin of the planar face.Parameters:oOrigin[0]The X Coordinate of the planar face originoOrigin[1]The Y Coordinate of the planar face originoOrigin[2]The Z Coordinate of the planar face origin
- Parameters:
o_origin (tuple) –
- Return type:
None
- get_second_axis(o_second_axis: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSecondAxis(CATSafeArrayVariant oSecondAxis)Returns the planar face second axis.Parameters:oSecondAxis[0]The X Coordinate of the planar face second axisoSecondAxis[1]The Y Coordinate of the planar face second axisoSecondAxis[2]The Z Coordinate of the planar face second axis
- Parameters:
o_second_axis (tuple) –
- Return type:
None