If it returns nil, open Notepad and save it to a Support File Search Path list location, with that name - acaddoc.lsp. If that returns a file path and name, note where that is, and open that file in Notepad. In a drawing, type (findfile "acaddoc.lsp"). If you want it to be loaded automatically into every drawing you open, without your needing to APPLOAD it yourself, one way to do that is: Then when you call up the Xline command, it will use that new definition of it, with the Layer change. In any drawing, go into APPLOAD, navigate to where you put that file, and select and Load it. lsp filetype ending - call it whatever you want, but it should be meaningful so you can find it later, such as XlineNew.lsp or something. Save it to a file in your chosen filepath location, with a. In AutoCAD, go into OPTIONS, Files tab, Support File Search Path list, and choose a filepath location listed there, or make your own filepath location/folder for things like this, and add it to the list.Ĭopy the code and paste it into a plain-text editor such as Notepad. You can't just paste that code into the Command line. It's still drawing them on the current Layer - it's just changing what the current Layer is before it draws them. So if you happen to always want them on one particular Layer, you need to use one of the overlay programs that has settings for such things, or you need something like that routine to make it always put them there. And most people would not always want all Xlines to be on a specific Layer, but would want to be able to draw them on various different Layers. That not a "problem" - everything is always drawn on the current Layer. shall I write in the command bar in AUTOCAD. one more thing I need to know : how to run the commands you have stated there. While drawing XLINE it is taking the current layer. XLINE - and it will use the native command instead of this new definition. If you ever need to draw an Xline not on that Layer, type in the command name with a preceding period/decimal. (setvar 'clayer clay) reset the previous current Layer (while (> (getvar 'cmdactive) 0) (command pause)) wait for User to finish "_make" " A-CONS-LINE" makes it if it doesn't exist, sets it current, turns it on if it exists but is off "_thaw" " A-CONS-LINE" in case it exists but is frozen (setq clay (getvar 'clayer)) save whatever Layer is current It involves UNDEFINE-ing the Xline command, and making a new definition of it that does the Layer change for you. īut if you don't have one of those overlay programs, and are using "vanilla" AutoCAD, and Xlines just go on the current Layer, whatever that is, it is possible to have them always drawn on a specific Layer if you want. Is there any way to reset the layer of xline.ĭoes it go on Layer 0 because that's the current Layer, or does it always go on Layer 0 even if the current Layer is something else, because that's set for the Layer Xlines are supposed to be on? Some of the overlay software has drafting standards you can set to put different object types on specific Layers like that, and you should be able to change that setting easily enough. But in my case it automatically takes the default layer line 0 layer. generally it's default layer is helpline. While drafting I am facing problem with the layer of XLINE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |