Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am looking to create a lisp file that will toggle a selected viewport on/off.
I've done a lot of searching but haven't found anything similar to what I'm trying to do.
This is all I have so far but its not working. My idea was to see if I could have it show an alert if the viewport was on or off and build off that, but I'm stuck and I'm not entirely sure I'm going about this the right way.
(vl-load-com) (defun c:ttt (/ ) (setq VP (ssget)) (setq targetvp (vlax-ename->vla-object (ssname VP 0))) (if (=(vla-display targetvp :vlax-true)) (alert "true") ) (alert "false") )
Solved! Go to Solution.