Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Auto change to layer 0 and linetype

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
lai
Advocate
1403 Views, 20 Replies

Auto change to layer 0 and linetype

Hi, anyone know how to write a lisp that when i activate it, it will change all the objects in the drawings to be change to "Layer 0" and all linetypes "Dashed" change to be "hidden"...

20 REPLIES 20
Message 21 of 21
Kent1Cooper
in reply to: lingam2904


@lingam2904 wrote:

I would like to change the linetype in the "E-Switching" layer from "Hidden" to "Continuous" by executing a lisp program. can anyone assist how to resolve the above.

....


Welcome to the Forums!  A little off the Subject of this thread, but a simple Layer command will do it.  Put into AutoLISP terms:

 

(command "_.layer" "_ltype" "Continuous" "E-Switching" "")

 

Or, defined as a command, so you can type a command name to do it:

 

(defun C:Whatever ()

  (command "_.layer" "_ltype" "Continuous" "E-Switching" "")

)

 

Put that into a file with a .lsp filetype ending, and load it using APPLOAD to make the command available.

Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost