Hierarchy
AutoCAD models are organized by File and Layer:- File - The AutoCAD file
- Layer - AutoCAD layer
Object Types
AutoCAD exports three types of objects:- Geometry - Standalone geometry objects (Point, Line, Polyline, Arc, etc.)
- Instance - Block references pointing to Definition proxies
- DataObject - Objects with attached extended data (less common)
Geometry Objects
Standalone geometry objects can appear directly in collections:Instance Objects
Instance objects reference Definition proxies for block definitions:Properties
Geometry and Instance objects can have aproperties field dynamically attached containing:
- Extension Dictionaries - Custom data stored in extension dictionaries
- XData - Extended entity data
Proxies
AutoCAD models use these proxy types:RenderMaterial
Material assignments for visual representation.Color
Color assignments for objects. Referenced by objects viaapplicationId.
Group
Group proxies encode AutoCAD group memberships. Objects can belong to multiple groups.Definition
Definition proxies store geometry for block definitions. Referenced by Instance objects viadefinitionId.
Example: AutoCAD Geometry Object
Example: AutoCAD Instance
Invariants and Caveats
- Standalone geometry - Geometry objects can exist directly in collections
- Instance/Definition pattern - Block instances use the Instance/Definition proxy pattern
- Properties are optional - Not all geometry objects have properties
- Layer organization - Objects are organized by AutoCAD’s layer structure
- Extended data in properties - Extension dictionaries and XData appear in
propertiesfield - No Info fields - AutoCAD models don’t include Info fields
How do I access block definition geometry?
How do I access block definition geometry?
Use the Instance’s
definitionId to find the corresponding Definition proxy, then access proxy.value.displayValue to get the geometry. See Traversal Recipes for a complete example.Related Documentation
- Object Schema - Base object structure
- Geometry Schema - Geometry storage
- Proxy Schema - How proxies work