Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to get a lisp command that collects and stores the current layer name, creates a new, prompts for a new viewport with two point selection on the new layer then returns the layer to the original layer.
(defun c:Nvp ()
(setq cl (getvar "cLAYER"))
(COMMAND "-LAYER" "M" "NO PLOT" "c" "14" "no plot" "p" "n" "no plot" "")
(command "-VPORTS" PAUSE)
(SETVAR "clayer" cl)
)
It all works except for two things. it does not display the 'specify corner' and the 'specify opposite corner' prompts. Second issue is it places the viewport on the stored layer instead of the new layer.
Solved! Go to Solution.