Hello
Is it possible to alter the 'Single Viewport' button macro to change layer to "VPort", allow the user to draw the viewport, then change the layer settings back to previous.
Regards
Steve
Hello
Is it possible to alter the 'Single Viewport' button macro to change layer to "VPort", allow the user to draw the viewport, then change the layer settings back to previous.
Regards
Steve
yes... What version?
Hi Todd
Autocad 2007
Just go into the .cui, copy and edit the command, then reassign it.
Hi
What command will I have to assign within the macro, I can change the layer to viewport and am then able to draw my viewport, but I do not know how to revert back to layerp at the end.
Appreciate your help
Cheers
Steve
._Layer ._Previous should do it.
Otherwise it's some lisp - set a variable equal to the current layer name at the beginning and restore it later.
John B
"With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.
Cheers for your help everyone
The end product was the following
-la;s;viewport;;$M=$(if,$(eq,$(getvar,vpmaximizedstate),1),^C^C_-vports,$(if,$(eq,$(getvar,tilemode),1),^C^C_-vports _si,^C^C_-vports));\\LayerP
The above scenario does not seem to have the same impact on polygonal viewports, can someone advise me on achieving the same result for this
Cheers
Steve
Hi Steve
Please note I have *moved* this thread from the AutoCAD General forum to this one, as I feel this particular forum is a more appropriate place for such a topic.
Thanks, Mike
Forum Manager
Hi
You may find the following threads helpful...
Polygonal Viewports
Force new VIEWPORT to specific layer
Viewport layer Lisp program makes AutoCAD crash
Place Viewport on a certain Layer
Have a good one, Mike