I was wondering if there was a way to assign layers to certain commands i.e. when i draw a dimension, it automatically places the dimension on the layer i specify for dimensions.
|
I was wondering if there was a way to assign layers to certain commands i.e. when i draw a dimension, it automatically places the dimension on the layer i specify for dimensions.
Hi
For starters take a look at the following thread...
Dimension layer setting
Have a good one, Mike
Thanks, I also had another question that would probably be more appropriate elsewhere, but here goes. I am new to autocad lisps, i dont know how to write them, or even where to write them to. Is there an easy way to learn the basics about autocad lisps? Any assistance would be appreciated. Thanks again!
You may try this thread -> Learning Lisp. The links within this thread can help you out.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
Unless you really need a custom solution using lisp, and you are using 2005/2006 - Tool Palettes are good for this.Originally Posted by kahnyad
R.K. McSwain | CAD Panacea |
Try this routine.
Just load it from your acaddoc.lsp
You will notice that it will switch layers when commands are given.
I can think of several improvements but this is a stripped down version.
Peter Jamtgaard
here are 2 lisps that will help with dimensioning on the proper layer. You will need to change where it says "T-DIMS" to the layer you want to use instead. The first one (DH) does a horizontal dimension, and the second one (DVD) does a vertical dimension. You can use the beginning of the lisp and change the end of it if you want.
Hope this helps!
[ Moderator Action = ON ] What are [ CODE ] tags... [ Moderator Action = OFF ]Code:(DEFUN C:DH()(COMMAND "_LAYER" "S" "T-DIMS" ENTER "DIM" "HOR" "END" PAUSE "END" PAUSE "END")) (DEFUN C:DVD()(COMMAND "_LAYER" "S" "T-DIMS" ENTER "DIM" "VER" "END" PAUSE "END" PAUSE "END"))
Last edited by Opie; 2005-11-08 at 06:13 PM. Reason: [CODE] tags added