need code to change lineweights and colors of entities in selected blocks

need code to change lineweights and colors of entities in selected blocks

Anonymous
Not applicable
1,051 Views
2 Replies
Message 1 of 3

need code to change lineweights and colors of entities in selected blocks

Anonymous
Not applicable

Hello to all:

 

I need some LISP code to accomplish two simple tasks.  Every project I work on has blocks, and I need LISP code that will allow me to select any number of blocks, then change the lineweight and color of all the entities inside the blocks to ByLayer.

 

I have tried searching the forum, but I cannot find what I need, what I seem to keep running into is "do it for everything in the drawing" and that's not what I need; I have to be able to select any number of specific blocks for this operation.  Thanks in advance for any replies!

0 Likes
Accepted solutions (1)
1,052 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

Did you try the SETBYLAYER command?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

Anonymous
Not applicable

duh.  I' d heard about that one, but didn't realize that worked inside a block.  Thanks!

0 Likes