Code:(defun c:tm (/) (setvar 'tilemode (if (zerop (getvar 'tilemode)) 1 0 ) ) (princ) )
Registered forum members do not see this ad.
IS THERE ANY COMMAND TO SWITCH MODEL TAB TO LAYOUT TAB.
I USED <Switching to: Layout1> .BUT IT DOES NOT WORK.


Code:(defun c:tm (/) (setvar 'tilemode (if (zerop (getvar 'tilemode)) 1 0 ) ) (princ) )
Thanks for your lisp program. But when i am using it gives the following error
; error: AutoCAD variable setting rejected: TILEMODE nil
Command:


Strange...what version of cad are you using?




It should have worked, did you copy & paste the code?
here's a slightly differnet version:
Code:(defun c:tm (/) (setvar 'tilemode (- 1 (getvar 'tilemode)) ) (princ) )
This's a new one
It was alwaysCode:'tilemode
Did it change? -DavidCode:"tilemode"
R12 (Dos) - A2K
I thought they were two of the same?
'tilemode and "tilemode"
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper


Here is my favorite version (I believe Se7en is the original author)
Code:(defun c:tm (/) (setvar 'tilemode (boole 6 1 (getvar 'tilemode))) (princ) )
^^ pretty neat![]()
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Registered forum members do not see this ad.
much less elegant, but since many options are being offered, i thought i'd throw another option in the mix:
se7en's is by far the most impressive. they all do the same thing. 6 in one, half a dozen in the other.Code:(defun c:TM (/) (if (eq (getvar 'tilemode) 1) (setvar 'tilemode 0) (setvar 'tilemode 1) ) (princ) )
Bookmarks