Message 1 of 3
Not applicable
05-02-2019
12:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using a pair of simple lisp routines that lock or unlock a single viewport, but when I complete the command, the viewport is not selected anymore and I would like to add to the lisp to make it so the viewport is still selected after it is locked/unlocked. I would also like to know how to do this for a few other lisps if there is some universal "wording". Here is the lisp I am using:
;;LOCKS VIEWPORT
(defun c:vc (/ vp1)
(setq vp1 (ssget))
(command "mview" "l" "on" vp1 ""))
;;UNLOCKS VIEWPORT
(defun c:vx (/ vp2)
(setq vp2 (ssget))
(command "mview" "l" "off" vp2 ""))
Any help or suggestions would be appreciated! New to LISPs, but love to learn!
Thanks,
Michael
Solved! Go to Solution.