pycatia.mec_mod_interfaces.rectilinear_tri_dim_feat_edge¶
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.rectilinear_tri_dim_feat_edge.RectilinearTriDimFeatEdge(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.ReferenceMecModInterfaces.BoundaryMecModInterfaces.EdgeMecModInterfaces.TriDimFeatEdgeRectilinearTriDimFeatEdge1-D boundary belonging to a feature whose topological result is threedimensional, the boundary having a rectilinear geometry.Role: This Boundary object may be, for example, the edge of a Pad resultingfrom the extrusion of a square.You will create a RectilinearTriDimFeatEdge object using the Shapes.GetBoundary, HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2method. Then, you pass it to the operator (such as Hole.SetDirection).The lifetime of a RectilinearTriDimFeatEdge object is limited, seeBoundary.Example:This example asks the end user to select a face, a rectilinear edge, andcreates a hole. The rectilinear edge specifies the hole direction. It may be aRectilinearTriDimFeatEdge, a RectilinearBiDimFeatEdge or aRectilinearMonoDimFeatEdge.Dim EnabledObjectSelection1(0)Dim EnabledObjectSelection2(2)Set Document = CATIA.ActiveDocumentSet Selection = Document.Selection‘We propose to the user that he select a faceEnabledObjectSelection1(0)=”Face”Status=Selection.SelectElement2(EnabledObjectSelection1,”Select aface”,true)if (Status = “cancel”) then Exit SubSet Face = Selection.Item(1).ValueSelection.Clear‘We propose to the user that he select the hole directionEnabledObjectSelection2(0)=”RectilinearTriDimFeatEdge”EnabledObjectSelection2(1)=”RectilinearBiDimFeatEdge”EnabledObjectSelection2(2)=”RectilinearMonoDimFeatEdge”Status=Selection.SelectElement2(EnabledObjectSelection2,”Select the holedirection”,true)if (Status = “cancel”) then Exit SubSet Hole = ShapeFactory.AddNewHoleFromPoint(20.0,-5.5, 1.07,Face,10.0)Hole.ThreadingMode = 1Hole.ThreadSide = 0Hole.SetDirection Selection.Item(1).ValueDocument.Part.Update- get_direction(o_direction: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetDirection(CATSafeArrayVariant oDirection)Returns the direction of the rectilinear edgeParameters:oDirection[0]The X Coordinate of the directionoDirection[1]The Y Coordinate of the directionoDirection[2]The Z Coordinate of the direction
- Parameters:
o_direction (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 the rectilinear edge.Parameters:oOrigin[0]The X Coordinate of the rectilinear edge originoOrigin[1]The Y Coordinate of the rectilinear edge originoOrigin[2]The Z Coordinate of the rectilinear edge origin
- Parameters:
o_origin (tuple) –
- Return type:
None