Here's a quick way to toggle TILEMODE with a DIESEL expression. You can program this as a button.
'setvar;tilemode;$M=$(!=,$(getvar,tilemode),1)
Also once you make this a toolbar button you can assign a keyboard shortcut to access it.
Erik
Subscribe to:
Post Comments (Atom)
4 comments:
Some ideas what buttons to make with diesel.
Lock all exept this layer
Unlock all layers
Isolate
Turn all on
Freeze this layer
Unfreeze all
Copy rotate
Insert block scaled according to dimstyle.
Copy to current layer
Lock all viewport
Unlock all viewports
Ofcourse: purge all + audit +close drawing - with one button.
etc
The hardest thing is to create nice button images :)
I wonder why you are using setvar as transparent.As far as I know, tilemode system variable can not be set transparently.
Have you tried using the maximize viewport button that is at the bottom of the autocad program window? right next to the dyn, lwt and paper buttons.
Or the paper button that changes to model button and does almost the same thing too for older LT users.
By using an if statement you can also warn a user they are in paperspace (great to prevent paperspace dimensioning)
This routine checks to see if you are in paperspace and pops a cheated warning to the user if they try and dimension there.
(The cheat warning is a simple text box that erases)
^C^C$m=$(if,$(=,$(getvar,cvport),1),TEXT;$(getvar,VIEWCTR);;0;WE DONT DIMENSION IN PAPERSPACE;DDEDIT;LAST;;ERASE;LAST;,_DIMLINEAR;
Post a Comment