ModelSpace Collection (ActiveX)

A special Block object containing all model space entities.

Supported Platforms: Windows only

Class Information

Class Name

AcadModelSpace

Object Inheritance
Object
   AcadObject
      AcadBlock
         AcadModelSpace
Create Using

VBA

Not applicable
Access Via

VBA

Document.ModelSpace

Members

These members are part of this object:

Remarks

This collection represents all the objects in model space. To add new objects to model space, use the Add* methods listed below.

Because this collection is actually a block, it possesses several block characteristics. For example, this collection has a Layout object associated with it. In addition, all the objects in this collection can also be found in the Blocks collection under a block named *MODEL_SPACE. Both the block named *MODEL_SPACE and the ModelSpace collection actually point to the same data. The ModelSpace collection was created to provide a faster and easier means of accessing the data in model space.

You cannot create or delete a ModelSpace collection. There is always one ModelSpace collection provided in the drawing. You cannot delete, detach, bind, unload, or reload ModelSpace like an external reference can be so those functions are not listed. Nor cannot you manipulate ModelSpace like you can with a block definition.