Share

AutoCADBlockDefinition Object


Description

The AutoCADBlockDefinition object represents an AutoCAD block definition.

Methods

Name Description
CopyTo Method that copies the definition to the target drawing document.
Delete Method that deletes the AutoCADBlockDefinition object. This method will fail in the case where the definition is being referenced. This can be determined by using the IsReferenced property.
GetPromptTags Method that returns the tags and their corresponding prompts for field text (attributes) within the block definition.
GetReferenceKey Method that generates and returns the reference key for this entity.

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.
AttributeSets Property that returns the AttributeSets collection object associated with this object.
IsReferenced Property that specifies if the definition is being referenced or not. A definition is referenced when an instance of the definition has been placed on a sheet. A referenced definition cannot be deleted.
Name Property that indicates the name of this object or instance.
Parent Property returning the parent DrawingDocument object.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

AutoCADBlock.Definition, AutoCADBlockDefinition.CopyTo, AutoCADBlockDefinitions.Item, AutoCADBlockDefinitionsEnumerator.Item

Samples

Name Description
AutoCAD block insertion Demonstrates inserting an AutoCAD block.

Version

Introduced in version 2011

Was this information helpful?