pycatia.mec_mod_interfaces.sketches¶
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.sketches.Sketches(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionSketchesThe body’s collection of sketches not yet used by any shape.- add(i_plane: Reference) Sketch ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add(Reference iPlane) As SketchCreates a new sketch and adds it to the sketch collection. The sketchcreation implies to specify a supporting plane. Once created, the sketchexists, but is empty. You must use the Sketch.OpenEdition method to begin toedit it.Parameters:iPlaneThe sketch supporting planeThe followingBoundary object is supported: PlanarFace.Returns:oNewSketch The created sketchExample:This example creates the newSketch sketch on the XY plane of the myPartpart:Set XYPlane = myPart.OriginElements.PlaneXY()Set newSketch = myPart.Sketches.Add(XYPlane)
- get_boundary(i_label: str) Boundary ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetBoundary(CATBSTR iLabel) As BoundaryReturns a boundary using its label.Parameters:iLabelIdentification of theBoundary object. See Reference.DisplayName.Returns:The retrieved boundary
- Parameters:
i_label (str) –
- Return type:
- item(i_index: cat_variant) Sketch ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Item(CATVariant iIndex) As SketchReturns a sketch using its index or its name from the Sketchescollection.Parameters:iIndexThe index or the name of the sketch to retrieve from the collectionof sketches. As a numerics, this index is the rank of the sketch in thecollection. The index of the first sketch in the collection is 1, and the indexof the last sketch is Count. As a string, it is the name you assigned to thesketch using theAnyObject.Name property.Returns:The retrieved sketchExample:This example retrieves the last item in the collectionsketches.Set lastSketch = sketchList.Item(sketchList.Count)
- Parameters:
i_index (cat_variant) –
- Return type: