In this section, you saw code examples that led to the drawing of a circle object in an AutoCAD drawing using ActiveX Automation. The following sequence of function calls was used:
(vl-load-com) (setq acadObject (vlax-get-acad-object)) (setq acadDocument (vla-get-ActiveDocument acadObject)) (setq mSpace (vla-get-ModelSpace acadDocument)) (setq mycircle (vla-addCircle mSpace (vlax-3d-point '(3.0 3.0 0.0)) 2.0))
The statements in this example accomplished the following:
The hierarchical path traversed in the AutoCAD object model is pictured below: