AutoCADBlock Object


Description

The AutoCADBlock object represents an instance of an AutoCAD block definition on a sheet.

Methods

Name Description
Delete Method that deletes the AutoCAD block from the sheet.
GetCustomLineType Method that returns information regarding the custom line type in use. The method returns a failure if the return value of the LineType property is not kCustomLineType.
GetPromptTextValues Method that returns the prompt strings and values (attributes) of the block.
GetReferenceKey Method that generates and returns the reference key for this entity.
SetCustomLineType Method that sets a custom line type to the symbol from the specified .lin file. The method automatically changes the value of LineType property to kCustomLineType.
SetPromptTextValues Method that sets the prompt string values (attributes) of the block.

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.
Color
Definition
Layer
LineType
LineWeight
Name Property that indicates the name of this object or instance.
Parent Property that returns the parent Sheet object.
Position
Rotation
Scale
Static
Transformation Property that provides the transform that is applied to display the associated AutoCAD block definition in the correct location on the sheet. The matrix defines the sheet to block transform.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

AutoCADBlocks.Add, AutoCADBlocks.Item

Samples

Name Description
AutoCAD block insertion Demonstrates inserting an AutoCAD block.

Version

Introduced in version 2011