vlaxgetproperty
vlax-get-property is a Visual LISP function used in AutoCAD and other products that support Visual LISP's ActiveX automation interface. It retrieves the value of a property from a COM/Automation object. The function is part of the vlax family, which provides access to COM objects, properties, and methods from Lisp code.
Syntax: (vlax-get-property obj prop) where obj is a COM object reference (for example, one obtained with vlax-create-object
(setq acad (vlax-get-acad-object))
(setq activeDoc (vlax-get-property acad 'ActiveDocument))
(setq modelSpace (vlax-get-property activeDoc 'ModelSpace))
Return value: The property value is returned as a Lisp representation or as a wrapper for a
Notes and related functions: vlax-put-property is used to assign a value to a property, and vlax-invoke is