Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking for a method to check if the current viewport is locked or unlocked, returning T or nil.
I find many methods that are similar to the one below, but gives me an error:
; error: Automation Error. No active viewport in paperspace
(vl-load-com)
(setq is_vp_lock (vla-get-displaylocked (vla-get-activeviewport (vla-get-activedocument (vlax-get-acad-object)))))
Thanks for any help.
Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
Solved! Go to Solution.