pvd Posted October 28, 2009 Posted October 28, 2009 Hi all, When turning off all layers, autocad is always asking if you want to turn off the current layer as well. Is there a possibility for autocad to stop asking this question everytime again? I hope so... Thanks in advance! Quote
ReMark Posted October 28, 2009 Posted October 28, 2009 If you turn off ALL layers plus the current one what's left to look at? I suppose you could write a macro that would do it. Quote
pvd Posted October 28, 2009 Author Posted October 28, 2009 Well, I use it for isolating one layer: I turn of (or freeze) all layers and then i turn on the specified layer again. For example when i'm not able to purge one layer and i wanna see what's still on there... Quote
ReMark Posted October 28, 2009 Posted October 28, 2009 There is no LAYER ISOLATE (LAYISO) command as there is in AutoCAD? Quote
pvd Posted October 28, 2009 Author Posted October 28, 2009 There is a layer isolate command in Autocad: You click on an object on the specific layer and then you type "layiso" or you use the icon. But if you can't see anything anymore which is on the layer which you want to purge (talking again about my purge example), you don't know either which one you have to isolate. Hope I'm clear by this cause this might sound vague...anyway maybe I'll try to find out how this micro thing works. Suppose you need to know about visual basic for it right? Quote
ReMark Posted October 28, 2009 Posted October 28, 2009 No not clear. Now you want to purge as well? I've created a handful of macros without the use of Visual Basic. You need to know the commands you want to use and whether or not the macro will pause for user input. Here's a simple macro that Thaws and Sets the layer to 1 and sets color and linetype to Bylayer: ^C^CLAYER;T;1;S;;COLOR;BYLAYER;LINETYPE;S;BYLAYER;; Quote
ReMark Posted October 28, 2009 Posted October 28, 2009 I reread your last post. I think I get it. You want to PURGE a layer that you have turned off? Quote
pvd Posted October 28, 2009 Author Posted October 28, 2009 No, I want to purge a layer that seems to be empty. But as I can't purge it, I suppose there are still items on there. And because I need to find these items that are on there, I can't use the layiso-command. Hope I'm more clear now. Thanks already for the macro-help. Think it 'll be helpfull for more cases... Quote
ReMark Posted October 28, 2009 Posted October 28, 2009 I don't know about Inventor but in AutoCAD if I run into a stubborn item I want to purge I type -purge at the command line. The first thing I zap is regapps. I believe there is a LISP program that is called SuperPurge but at the moment I cannot recall its whereabouts. I'll have to look. Quote
Glen Smith Posted October 28, 2009 Posted October 28, 2009 There may be a better way to do what you want to do - it looks like ReMark and others are hot on the trail of it - but there is a way to turn off the prompt re turning off the current layer. The EXPERT system variable: Type:IntegerSaved in:Not-savedInitial value:0 Controls whether certain prompts are issued. 0 Issues all prompts normally. [color=red]1[/color] [color=red]Suppresses “About to regen, proceed?” and “Really want to turn the current layer off?” (-[/color][url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-4aa3.htm#WSc30cd3d5faa8f6d813d93f4ffc2d60bb4-8000"][color=red]LAYER[/color][/url][color=red])[/color] 2 Suppresses the preceding prompts and “Block already defined. Redefine it?” (-[url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-4d7e.htm#WSc30cd3d5faa8f6d8fc9944ffc2d5f5a4-7fe9"]BLOCK[/url]) and “A drawing with this name already exists. Overwrite it?” ([url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-53e5.htm#WSc30cd3d5faa8f6d81bca5f1ffc2d61c40-8000"]SAVE[/url] or [url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-5226.htm#WSc30cd3d5faa8f6d815ee671ffc2d6289c-8000"]WBLOCK[/url]). 3 Suppresses the preceding prompts and those issued by the [url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-4a54.htm#WSc30cd3d5faa8f6d813d93f4ffc2d60bb4-7faa"]LINETYPE[/url] Command prompt (-LINETYPE) if you try to load a linetype that's already loaded or create a new linetype in a file that already defines that linetype. 4 Suppresses the preceding prompts and those issued by [url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-5299.htm#WSc30cd3d5faa8f6d815ee671ffc2d6228c-7fff"]UCS[/url] Save and [url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-523c.htm#WSc30cd3d5faa8f6d8df8f5effc2d6268a-7fc2"]VPORTS[/url] Save if the name you supply already exists. 5 Suppresses the prompt, “That name is already in Use, redefine it?” issued by the -[url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-4c23.htm#WSc30cd3d5faa8f6d88b819fffc2d5fd76-7f63"]DIMSTYLE[/url] Save option when you supply the name of an existing dimension style. Suppresses the same prompt issued by the -[url="http://www.cadtutor.net/forum/ms-its:C:\Program Files\Autodesk\Acade 2010\help\acad_acr.chm::/WS1a9193826455f5ffa23ce210c4a30acaf-53db.htm#WSc30cd3d5faa8f6d81bca5f1ffc2d61c40-7fed"]SCALELISTEDIT[/url] Add option. I think if you set it to 1 you should eliminate that prompt. This system variable is not saved - so you need to set it every time you reopen AutoCAD. You may be able to stick it in a LISP that runs every launch though. Glen Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.