AcadMInsertBlock
Multiple copies of a block reference as a single object.
Supported Platforms: Windows only
Object Inheritance
Members
These members are part of this object:
Methods- GetXData
- SetXData
- Delete
- GetExtensionDictionary
- ArrayPolar
- ArrayRectangular
- Highlight
- Copy
- Move
- Rotate
- Rotate3D
- Mirror
- Mirror3D
- ScaleEntity
- TransformBy
- Update
- GetBoundingBox
- IntersectWith
- Explode
- GetAttributes
- GetConstantAttributes
- GetDynamicBlockProperties
- ResetBlock
- ConvertToAnonymousBlock
- ConvertToStaticBlock
Properties- Handle
- ObjectName
- ObjectID
- Application
- HasExtensionDictionary
- OwnerID
- Document
- TrueColor
- Layer
- Linetype
- LinetypeScale
- Visible
- PlotStyleName
- Lineweight
- Hyperlinks
- Material
- EntityTransparency
- InsertionPoint
- Name
- Normal
- Rotation
- XScaleFactor
- YScaleFactor
- ZScaleFactor
- HasAttributes
- EffectiveName
- IsDynamicBlock
- XEffectiveScaleFactor
- YEffectiveScaleFactor
- ZEffectiveScaleFactor
- InsUnits
- InsUnitsFactor
- Columns
- Columns
- ColumnSpacing
- ColumnSpacing
- Rows
- Rows
- RowSpacing
- RowSpacing
- GetXData()
Void GetXData([in] BSTR AppName, [out] Pointer Type XDataType, [out] Pointer Type XDataValue)
Returns the extended data (XData) associated with an object.
- SetXData()
Void SetXData([in] VARIANT XDataType, [in] VARIANT XDataValue)
Sets the extended data (XData) associated with an object.
- Delete()
Void Delete( )
Deletes a specified object.
- GetExtensionDictionary()
IAcadDictionary* GetExtensionDictionary( )
Returns the extension dictionary associated with an object.
- ArrayPolar()
VARIANT ArrayPolar([in] Int NumberOfObjects, [in] Double AngleToFill, [in] VARIANT CenterPoint)
Not implemented. Creates an array of selected objects in a polar pattern.
- ArrayRectangular()
VARIANT ArrayRectangular([in] Int NumberOfRows, [in] Int NumberOfColumns, [in] Int NumberOfLevels, [in] Double DistBetweenRows, [in] Double DistBetweenCols, [in] Double DistBetweenLevels)
Not implemented. Creates an array of selected objects in a rectangular pattern.
- Highlight()
Void Highlight([in] Boolean HighlightFlag)
Not implemented. Highlights or removes highlight from an entity.
- Copy()
IDispatch* Copy( )
Copies a specified entity.
- Move()
Void Move([in] VARIANT FromPoint, [in] VARIANT ToPoint)
Moves an entity from one point to a second point.
- Rotate()
Void Rotate([in] VARIANT BasePoint, [in] Double RotationAngle)
Rotates an entity around a point.
- Rotate3D()
Void Rotate3D([in] VARIANT Point1, [in] VARIANT Point2, [in] Double RotationAngle)
Rotates an entity around a line defined by two points, where the direction of the axis if from the first point to the second point.
- Mirror()
IDispatch* Mirror([in] VARIANT Point1, [in] VARIANT Point2)
Not implemented. Mirrors an object around a line defined by two points.
- Mirror3D()
IDispatch* Mirror3D([in] VARIANT Point1, [in] VARIANT Point2, [in] VARIANT point3)
Not implemented. Mirrors an object around a plane defined by three points.
- ScaleEntity()
Void ScaleEntity([in] VARIANT BasePoint, [in] Double ScaleFactor)
Scales an object with respect to a base point and scale factor.
- TransformBy()
Void TransformBy([in] VARIANT TransformationMatrix)
Performs the specified transformation on an entity.
- Update()
Void Update( )
Not implemented. Updates the display of an entity.
- GetBoundingBox()
Void GetBoundingBox([out] Pointer Type MinPoint, [out] Pointer Type MaxPoint)
Returns the minimum and maximum point of an entity's bounding box.
- IntersectWith()
VARIANT IntersectWith([in] IDispatch* IntersectObject, AcExtendOptionShort option)
Returns coordinates of intersections with the (input) IntersectObject.
- Explode()
VARIANT Explode( )
Explodes the block or external reference and returns the individual entities as an array of the object.
- GetAttributes()
VARIANT GetAttributes( )
Returns the attributes of a block or external reference.
- GetConstantAttributes()
VARIANT GetConstantAttributes( )
Returns the constant attributes of a block or external reference.
- GetDynamicBlockProperties()
VARIANT GetDynamicBlockProperties( )
Returns the properties of a dynamic block reference.
- ResetBlock()
Void ResetBlock( )
Changes a dynamic block reference to its original state.
- ConvertToAnonymousBlock()
Void ConvertToAnonymousBlock( )
Converts a dynamic block reference to a regular block reference with no name.
- ConvertToStaticBlock()
Void ConvertToStaticBlock([in] BSTR newBlockName)
Converts a dynamic block reference to a regular block reference with a name.
- Handle [ReadOnly]
BSTR Handle( )
Returns the handle of an object.
- ObjectName [ReadOnly]
BSTR ObjectName( )
Returns the TeighaX class name of an object.
- ObjectID [ReadOnly]
LONG_PTR ObjectID( )
Returns the object ID of an object.
- Application [ReadOnly]
IDispatch* Application( )
Returns the Application object.
- HasExtensionDictionary [ReadOnly]
Boolean HasExtensionDictionary( )
Returns whether an object has an associated extension dictionary.
- OwnerID [ReadOnly]
LONG_PTR OwnerID( )
Returns the object ID of the parent object.
- Document [ReadOnly]
IDispatch* Document( )
Returns the drawing to which an object belongs.
- TrueColor
IAcadAcCmColor* TrueColor( )
Specifies or returns the true color of an object.
- Layer
BSTR Layer( )
Specifies or returns the current layer of an object.
- Linetype
BSTR Linetype( )
Specifies or returns the current linetype of an object.
- LinetypeScale
ACAD_NOUNITS LinetypeScale( )
Specifies or returns the linetype scale factor of an object.
- Visible
Boolean Visible( )
Specifies or returns the visibility of an object or the application.
- PlotStyleName
BSTR PlotStyleName( )
Specifies or returns the plot style name of an object.
- Lineweight
ACAD_LWEIGHT Lineweight( )
Specifies or returns the lineweight of an object.
- Hyperlinks [ReadOnly]
IAcadHyperlinks* Hyperlinks( )
Assigns a hyperlink to an object and displays the hyperlink name and description (if one is specified).
- Material
BSTR Material( )
Specifies or returns the material of an object.
- EntityTransparency
BSTR EntityTransparency( )
Specifies the transparency of the object
- InsertionPoint
VARIANT InsertionPoint( )
Specifies or returns the x, y, z coordinates for the insertion point of a block or external reference.
- Name
BSTR Name( )
Specifies or returns the name of a block or external reference.
- Normal
VARIANT Normal( )
Specifies or returns the x, y, and z coordinates of the normal direction vector.
- Rotation
ACAD_ANGLE Rotation( )
Specifies or returns the rotation angle of a block or external reference.
- XScaleFactor
ACAD_NOUNITS XScaleFactor( )
Specifies or returns the XScale factor of a block or external reference.
- YScaleFactor
ACAD_NOUNITS YScaleFactor( )
Specifies or returns the YScale factor of a block or external reference.
- ZScaleFactor
ACAD_NOUNITS ZScaleFactor( )
Specifies or returns the ZScale factor of a block or external reference.
- HasAttributes [ReadOnly]
Boolean HasAttributes( )
Returns if a block or external reference has any attributes associated with it.
- EffectiveName [ReadOnly]
BSTR EffectiveName( )
Returns the original name of a block reference.
- IsDynamicBlock [ReadOnly]
Boolean IsDynamicBlock( )
Returns if a block reference is dynamic.
- XEffectiveScaleFactor
ACAD_NOUNITS XEffectiveScaleFactor( )
Specifies or returns the effective XScale factor of a block or external reference.
- YEffectiveScaleFactor
ACAD_NOUNITS YEffectiveScaleFactor( )
Specifies or returns the effective YScale factor of a block or external reference.
- ZEffectiveScaleFactor
ACAD_NOUNITS ZEffectiveScaleFactor( )
Specifies or returns the effective ZScale factor of a block or external reference.
- InsUnits [ReadOnly]
BSTR InsUnits( )
Returns the insertion units of a block or external reference.
- InsUnitsFactor [ReadOnly]
Double InsUnitsFactor( )
Returns the insertion units factor of a block or external reference.
- Columns
Void Columns( )
Specifies or returns the number of vertical columns in the block pattern.
- Columns [ReadOnly]
Integer Columns( )
Specifies or returns the number of vertical columns in the block pattern.
- ColumnSpacing
Void ColumnSpacing( )
Specifies or returns the spacing between columns in the block pattern.
- ColumnSpacing [ReadOnly]
Double ColumnSpacing( )
Specifies or returns the spacing between columns in the block pattern.
- Rows
Void Rows( )
Specifies or returns the number of horizontal rows in the block pattern.
- Rows [ReadOnly]
Integer Rows( )
Specifies or returns the number of horizontal rows in the block pattern.
- RowSpacing
Void RowSpacing( )
Specifies or returns the spacing between rows in the block pattern.
- RowSpacing [ReadOnly]
Double RowSpacing( )
Specifies or returns the spacing between rows in the block pattern.
- Modified()
Void Modified([in] IAcadObject pObject)
Occurs when an object in a drawing has been modified.