Description

AcadBlock Object Properties

In addition to the properties inherited from the AcadEntity object and the common Application property, the AcadBlock object supports the following properties.

Name

Returns

Description

Count

Integer

Gets the number of items in the block. This property is readonly.

IsLayout

Boolean

Determines whether the block is a layout block. This property's value is read-only. If the values for IsLayout and IsXref are both False, then the block is a simple block.

IsXref

Boolean

Determines whether the block is an Xref block. This property's value is read-only.

Layout

AcadLayout

Gets the plot settings (AcadLayout object) for the block. This property's value is read-only.

Name

String

Gets the name of the block.

Origin

Variant

Gets or sets the origin of the block in WCS coordinates.

XrefDatabase

AcadDatabase

Gets the AcadDatabase object that defines the contents of the block. Available only if the IsXref property for the block is True. This property's value is read-only.

Note Because this object inherits from AcadObject, it supports the Modified event.

0 0

Post a comment