Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello boys how are you.
I am trying to set a variable with VL functions, but it gives me an error.
; error: Automation Error. Error setting system variable
Why does this happen and how can I correct it?
(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(vlax-variant-value (vla-GetVariable doc "3dosmode"))
(vla-SetVariable doc "3dosmode" 3)
Thanks a lot.
AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)
Solved! Go to Solution.