I'm trying to limit the activity inside a paper space's viewport.
Specifically text and dimension objects (our routines) as these layers inside the viewport may be frozen.
How do I pragmatically get out of the viewport back into paper space?
Command: _.PSPACE Command: cvport Enter new value for CVPORT <1>: Command: _.MSPACE Command: cvport Enter new value for CVPORT <2>: 1 Cannot set CVPORT to that value. *Invalid*
Thanks in advance.
scot-65
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.
Hi, if you wish to avoid the command function
e.g. inside a reactor function
or in a function to be used with vlax-add-command
to create a transparent command
you can try the following:
(and
(= (getvar "TILEMODE") 0)
(> (getvar "CVPORT") 1)
(vla-put-Mspace (vla-get-activedocument (vlax-get-acad-object)) 0)
)
Ian