Hi all;
Other than the (getvar "osmode") or other system variables, is there an equivalent function in Vlisp/ActiveX environment in order to get the system variable? Thanks
csgoh
|
Hi all;
Other than the (getvar "osmode") or other system variables, is there an equivalent function in Vlisp/ActiveX environment in order to get the system variable? Thanks
csgoh
;;You can use:
(setq old-osmode1 (getvar "osmode"))
;;or you can use:
(setq old-osmode2 (vlax-variant-value
(vla-getvariable
(vla-get-activedocument
(vlax-get-acad-object))
"osmode")
))
;;You be the judge of which is easier