Share

AutoCADBlockDefinitions Object


Description

The AutoCADBlockDefinitions collection object provides access to all the existing AutoCADBlockDefinition objects in a (DWG) drawing document and provides methods to import additional definitions.

Methods

Name Description
AddFromFile Method that imports AutoCAD block definitions from an AutoCAD or an Inventor DWG file.

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 AutoCADBlockDefinition object from the collection.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

DrawingDocument.AutoCADBlockDefinitions

Samples

Name Description
AutoCAD block definitions import This sample demonstrates importing AutoCAD block definitions from an external dwg file.
AutoCAD block insertion Demonstrates inserting an AutoCAD block.

Version

Introduced in version 2011

Was this information helpful?