Request for AutoLISP

Request for AutoLISP

SnickerinTurtles
Enthusiast Enthusiast
3,351 Views
41 Replies
Message 1 of 42

Request for AutoLISP

SnickerinTurtles
Enthusiast
Enthusiast

Hi all, I am new to posting so please forgive me if I make any mistakes. 

 

I am looking to create an Lisp that will change the color of a specific layer name. For example in a landscape drawing I have xrefenced in some civil files that contain layers "Project#-HC|C-BLDG-OTLN" or "Project#-HC|C-UTIL-WATR". Now I have to go through and change these layers to their specific color in when working in a landscape drawing for landscape plotting purposes. Is there a way to make a lisp so that anytime I run the command it will change layer color  of "Project#-HC|C-BLDG-OTLN" to color 152 and "Project#-HC|C-UTIL-WATR" to color 190. 

 

Hopefully I am making sense if not please let me know and I will try to be more clear.

Thank you.

0 Likes
Accepted solutions (1)
3,352 Views
41 Replies
Replies (41)
Message 41 of 42

grobnik
Collaborator
Collaborator
Thank you but I don't understand where to place the code you showed, it
should be replace some part of initial entire code ?

Thank you
0 Likes
Message 42 of 42

hak_vz
Advisor
Advisor

With received key sequences you would use function entmode to modify one or more entities or use for what ever you need. If you need further help, please start new tread in this forum and describe your problem in details i.e. what you want to achieve. Attach sample drawing or part of your code.

 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes