pycatia.mec_mod_interfaces.cylindrical_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.cylindrical_face.CylindricalFace(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.ReferenceMecModInterfaces.BoundaryMecModInterfaces.FaceCylindricalFace2-D boundary with a cylindrical geometry.Role: This Boundary object may be, for example, the lateral face of acylinder.You will create a CylindricalFace object using the Shapes.GetBoundary ,HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2method. Then, you pass it to the operator (such asShapeFactory.AddNewCircPattern ).The lifetime of a CylindricalFace object is limited, seeBoundary.Example:This example asks the end user to select a shape to pattern and acylindrical face, and creates a circular pattern of the shape. The cylindricalface specifies the rotation axis.Dim InputObjectType(0)Set Document = CATIA.ActiveDocumentSet Selection = Document.Selection‘We propose to the user that he select the shape topatternInputObjectType(0)=”SketchBasedShape”Status=Selection.SelectElement2(InputObjectType,”Select the shape topattern”,true)if (Status = “cancel”) then Exit SubSet Shape = Selection.Item(1).ValueSelection.Clear‘We propose to the user that he select the cylindricalfaceInputObjectType(0)=”CylindricalFace”Status=Selection.SelectElement2(InputObjectType,”Select the cylindricalface”,true)if (Status = “cancel”) then Exit SubSet CylindricalFace = Selection.Item(1).ValueSet RotationCenter = Document.Part.CreateReferenceFromName(“”)Set CircPattern = ShapeFactory.AddNewCircPattern(Shape,1,4,20.0,45.0,1,4,RotationCenter,CylindricalFace,True,0.0,True)Document.Part.Update- get_direction() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetDirection(CATSafeArrayVariant oDirection)Returns the direction of the cylindrical face axisParameters:oDirection[0]The X Coordinate of the axis directionoDirection[1]The Y Coordinate of the axis directionoDirection[2]The Z Coordinate of the axis direction
- Parameters:
o_direction (tuple) –
- Returns:
None
- get_origin() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetOrigin(CATSafeArrayVariant oOrigin)Returns the origin of the cylindrical face axis.Parameters:oOrigin[0]The X Coordinate of the axis originoOrigin[1]The Y Coordinate of the axis originoOrigin[2]The Z Coordinate of the axis origin
- Parameters:
o_origin (tuple) –
- Return type:
None