pycatia.mec_mod_interfaces.vertex¶
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.vertex.Vertex(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.ReferenceMecModInterfaces.BoundaryVertex0-D boundary.Role: This Boundary object may be, for example, the corner of a Pad resultingfrom the extrusion of a square.You will create an Vertex object using the Shapes.GetBoundary ,HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2method. Then, you pass it to the operator (such asHybridShapeFactory.AddNewLinePtPt ).The lifetime of a Vertex object is limited, see Boundary.See also:TriDimFeatVertexOrBiDimFeatVertex , NotWireBoundaryMonoDimFeatVertex ,ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex .Example:This example asks the end user to select successively two vertices. Then,it creates a line between these two vertices.Dim InputObjectType(0)Set Document = CATIA.ActiveDocumentSet Selection = Document.SelectionSet HybridBodies = Document.Part.HybridBodiesSet HybridBody = HybridBodies.Item(“Geometrical Set.1”)‘We propose to the user that he select the first vertexInputObjectType(0)=”Vertex”Status=Selection.SelectElement2(InputObjectType,”Select the firstvertex”,true)if (Status = “cancel”) then Exit SubSet FirstVertex = Selection.Item(1).ValueSelection.Clear‘We propose to the user that he select the second vertexInputObjectType(0)=”Vertex”Status=Selection.SelectElement2(InputObjectType,”Select the secondvertex”,true)if (Status = “cancel”) then Exit SubSet SecondVertex = Selection.Item(1).ValueSet hybridShapeLinePtPt = HybridShapeFactory.AddNewLinePtPt(FirstVertex,SecondVertex)HybridBody.AppendHybridShape hybridShapeLinePtPtDocument.Part.InWorkObject = hybridShapeLinePtPtDocument.Part.Update