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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Sketches

The 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 Sketch

Creates a new sketch and adds it to the sketch collection. The sketch
creation implies to specify a supporting plane. Once created, the sketch
exists, but is empty. You must use the Sketch.OpenEdition method to begin to
edit it.

Parameters:

iPlane
The sketch supporting plane
The following

Boundary object is supported: PlanarFace.
Returns:
oNewSketch The created sketch
Example:
This example creates the newSketch sketch on the XY plane of the myPart
part:

Set XYPlane = myPart.OriginElements.PlaneXY()
Set newSketch = myPart.Sketches.Add(XYPlane)
Parameters:

i_plane (Reference) –

Return type:

Sketch

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 Boundary

Returns a boundary using its label.

Parameters:

iLabel
Identification of the

Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
Parameters:

i_label (str) –

Return type:

Boundary

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 Sketch

Returns a sketch using its index or its name from the Sketches
collection.

Parameters:

iIndex
The index or the name of the sketch to retrieve from the collection
of sketches. As a numerics, this index is the rank of the sketch in the
collection. The index of the first sketch in the collection is 1, and the index
of the last sketch is Count. As a string, it is the name you assigned to the
sketch using the

AnyObject.Name property.
Returns:
The retrieved sketch
Example:
This example retrieves the last item in the collection
sketches.

Set lastSketch = sketchList.Item(sketchList.Count)
Parameters:

i_index (cat_variant) –

Return type:

Sketch