AutoCADBlock Object
Description
The AutoCADBlock object represents an instance of an AutoCAD block definition on a sheet.
Methods
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
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 |
Read-write property that gets and sets the color for the block. Setting the property to Nothing restores the block to the color defined by the layer on which this block resides. |
Definition |
Read-write property that gets and sets the AutoCADBlockDefinition object referenced by the block. |
Layer |
Read-write property that gets and sets the layer associated with the block. |
LineType |
Read-write property that gets and sets the line type override for the block. Setting the property to kDefaultLineType restores the block to the line type defined by the layer on which this block resides. If the property returns kCustomLineType, the GetCustom. |
LineWeight |
Read-write property that gets and sets the line weight override for the symbol. Setting the property to 0 restores the symbol to the line weight defined by the layer on which this curve resides. |
Name |
Property that indicates the name of this object or instance. |
Parent |
Property that returns the parent Sheet object. |
Position |
Read-write property that gets and sets the origin position of the block on the sheet. |
Rotation |
Read-write property that gets and sets the rotation angle of the block in radians. |
Scale |
Read-write property that gets and sets the scale of the block. |
Static |
Read-write property that gets and sets whether to show the scale and rotation grip points on the block. If True, the grip points are disabled. |
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
Version
Introduced in version 2011