Indexes   

Sketches (Collection)

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

Method Index

Add
Creates a new sketch and adds it to the sketch collection.
GetBoundary
Returns a boundary using its label.
Item
Returns a sketch using its index or its name from the Sketches collection.

Methods


o 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 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)
 
o Func GetBoundary( iLabel) As
Returns a boundary using its label.
Parameters:
iLabel
Identification of the
Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
o 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
AnyObject.Name property.
Returns:
The retrieved sketch
Example:
This example retrieves the last item in the collection sketches.
 Set lastSketch = sketchList.Item(sketchList.Count)
 

Copyright © 2006, Dassault Systèmes. All rights reserved.