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: . dd>
- 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:
-
- iLabel
- Identification of the object. See . dd>
- Returns:
- The retrieved boundary dd>
- 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. dd>
- Returns:
- The retrieved sketch
- Example:
-
This example retrieves the last item in the collection sketches.
Set lastSketch = sketchList.Item(sketchList.Count)