pycatia.mec_mod_interfaces.bi_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.bi_dim_feat_edge.BiDimFeatEdge(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.ReferenceMecModInterfaces.BoundaryMecModInterfaces.EdgeBiDimFeatEdge1-D boundary belonging to a feature whose topological result is twodimensional.Role: This Boundary object may be, for example, the edge of a surface obtainedthrough the extrusion of a spline.You will create a BiDimFeatEdge object using the Shapes.GetBoundary ,HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2method. Then, you pass it to the operator (such asHybridShapeFactory.AddNewPointOnCurveFromDistance ).The lifetime of a BiDimFeatEdge object is limited, seeBoundary.Example:This example asks the end user to select an edge, and creates a point onthis edge. Here, both TriDimFeatEdge and BiDimFeatEdge objects are proposed tothe user.Dim InputObjectType(1)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 an edgeInputObjectType(0)=”TriDimFeatEdge”InputObjectType(1)=”BiDimFeatEdge”Status=Selection.SelectElement2(InputObjectType,”Select anedge”,true)if (Status = “cancel”) then Exit SubSet Curve = Selection.Item(1).ValueSet HybridShapePointOnCurve = HybridShapeFactory.AddNewPointOnCurveFromDistance(Curve,18.0,False)HybridBody.AppendHybridShape HybridShapePointOnCurveDocument.Part.InWorkObject = HybridShapePointOnCurveDocument.Part.Update