AutoCAD VBA Programming: Tools and Techniques

Document Object Properties

The following table lists some of the properties or data elements that are defined at the document level. Not all of the properties are in this table. These are simply the most popular ones used among applications developers. You can find a complete list in the online help files supplied with AutoCAD for VBA ActiveX automation. The properties of the drawing object contain a varied set of information. Data ranges from file naming of the current drawing to collection linkages, allowing the programmer to dig deeper inside the drawing to get at information such as layer names, entity details, and block definitions.

Property

What it does

Active

Flags to indicate if this is the active document in multiple document mode.

ActiveLayer ActiveLinetype ActiveSpace ActiveTextStyle ActiveUCS

Pointers to the objects that are the current settings for the drawing system.

ActiveSelectionSet

The active selection set in the drawing is one currently being built by a command in progress or as a result of selecting objects as in the use of grips. This is a reference to a collection of entities.

Application

Controls the AutoCAD windows. This is a read-only value that provides a bridge to the upper level of the program. All objects in the ActiveX/VBA interface have an application property. The application object is actually higher in the AutoCAD object tree than the document object and this property provides a link back to it.

Blocks

Returns the blocks collection object for the drawing. This is a read-only value...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Computer-Aided Design (CAD) Services
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.