• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

color layer blocked

  • Thread starter Thread starter tore
  • Start date Start date

tore

Guest
Hello, everyone.
is there the possibility autocad, or autocad mechanical, to set a unique color when we go to block a layer??? example I have the x layer and if this layer is active I see it with colors, if instead I go to block I will have the possibility to see it of a single color... and if I go to unlock it again I will see it with the original colors... we also accept lisp, vlx and what else... thanks in advance... .
 
(defun la_lock(mylayer miocolor)
(command "_layer" "_lock" mylayer "_c" mycolor miolayer ")
)

(defun la_unlock(mylayer miocolor)
(command "_layer" "_unlock" mylayer "_c" mycolor ")
)

with these 2 commands you can lock or unlock a layer by setting the color.

example: (la_lock "x" 252)
the x layer is blocked and assigned color 252
(la_unlock "x" 7)
the x layer is unlocked and assigned color 7

bye
 
That's not what I wanted. I don't want to change color to the layer. but to the objects of the layer.. example I in the layer x I have a red circle and a yellow line. if the layer x the block normally will have the red circle and the yellow line displayed a little darker. instead I would like that when blocking a layer the circle and the line become color 8 (for example). and when I go to unlock I return the circle of red color and the line of yellow color. Is it possible? ? ? ?
 
theoretically it is necessary to examine every entity of the drawing of a x plan, to memorize the original color, to change color, to lock it and then restore it. said so, you can do it, but if by chance autocad goes in block while the x plan is locked, you combine a mess, don't you think?
 
and that's exactly what I wanted to avoid.... I thought there was a set variable like Lalockfadectl. . .
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top