Sketches (Object)

The body's collection of sketches not yet used by any shape.

Methods


Func Add( iPlane) As
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 method to begin to edit it.
Parameters:
iPlane
The sketch supporting plane
The following object is supported: .
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)
 
Func GetBoundary( iLabel) As
Returns a boundary using its label.
Parameters:
iLabel
Identification of the object. See .
Returns:
The retrieved boundary
Func Item( iIndex) As
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 property.
Returns:
The retrieved sketch
Example:
This example retrieves the last item in the collection sketches.
 Set lastSketch = sketchList.Item(sketchList.Count)