Share

SketchBlocks Object


Description

The SketchBlocks collection object provides access to all sketch block instances within a sketch and provides methods to create additional block instances.

Methods

Name Description
Add Method that creates a sketch block instance using existing sketch objects. A sketch block definition is implicitly created. The newly created SketchBlock object is returned.
AddByDefinition Method that creates a sketch block instance based on the \input definition. The newly created SketchBlock object is returned.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Count Property that returns the number of items in this collection.
Item Returns the specified SketchBlock object from the collection.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

PlanarSketch.SketchBlocks, PlanarSketchProxy.SketchBlocks, SketchBlockDefinition.SketchBlocks, SketchBlockDefinitionProxy.SketchBlocks

Samples

Name Description
Create and insert a sketch block definition into a part sketch This sample demonstrates inserting a sketch block into a part sketch.
Create sketch block from an existing sketch This sample demonstrates creating a sketch block from an existing sketch.

Version

Introduced in version 2010

Was this information helpful?