pycatia.mec_mod_interfaces.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.edge.Edge(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.ReferenceMecModInterfaces.BoundaryEdge1-D boundary.Role: This Boundary object may be, for example, the edge of acylinder.You will create an Edge object using the Shapes.GetBoundary ,HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2method. Then, you pass it to the operator (such asHybridShapeFactory.AddNewPointTangent ).The lifetime of an Edge object is limited, see Boundary.See also:TriDimFeatEdge , RectilinearTriDimFeatEdge , BiDimFeatEdge ,RectilinearBiDimFeatEdge , MonoDimFeatEdge , RectilinearMonoDimFeatEdge.Example:This example asks the end user to select a planar curve, whose plane isparallel to the XY plane. Then, it creates a point on the tangent to the curvein the X direction: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 a planar curve whose plane isparallel to the XY planeInputObjectType(0)=”Edge”Status=Selection.SelectElement2(InputObjectType,”Select a planar curvewhose plane is parallel to the XY plane”,true)if (Status = “cancel”) then Exit SubSet PlanarCurve = Selection.Item(1).ValueSet HybridShapeDirection = HybridShapeFactory.AddNewDirectionByCoord(1.0,0.0,0.0)Set HybridShapePointTangent = HybridShapeFactory.AddNewPointTangent(PlanarCurve,HybridShapeDirection)HybridBody.AppendHybridShape HybridShapePointTangentDocument.Part.InWorkObject = HybridShapePointTangentDocument.Part.Update