autolisp for checking what the current / active space is..
autolisp for checking what the current / active space is..
(OP)
Hi,
I'm not too hot on autolisp and need to know how to check what the current / active space is..
ie: if active space is modelspace then blah blah
else if active space is paperspace then blah blah blah
basically, i want to swap to a different dim style dependent on which space i'm in.
any help would be great, thanks
I'm not too hot on autolisp and need to know how to check what the current / active space is..
ie: if active space is modelspace then blah blah
else if active space is paperspace then blah blah blah
basically, i want to swap to a different dim style dependent on which space i'm in.
any help would be great, thanks
Cheers,
Paul @ basepoint designz ltd..
basepointdesignzltd
www.bpdesignz.com
RE: autolisp for checking what the current / active space is..
(defun c:Inscale (/ ip)
(setq tm (getvar "tilemode")); This is the variable you are looking for
(if
(= tm 0)
(progn
(alert "You Are Currently in Paper Space\nYou Will Be Switched to Model Space")
);progn
);if
(command "tilemode" 0)
(setq #ds (getvar "dimscale"))
(setq #cl (getvar "clayer"))