extended layer freeze routine

extended layer freeze routine

GeryKnee
Advocate Advocate
868 Views
4 Replies
Message 1 of 5

extended layer freeze routine

GeryKnee
Advocate
Advocate

Hello there,

 

how sould be a lisp code that is similar to Layer Freeze routine of autocad stard tools commands , but :

 

 1) Object whose layer selected is not one but a member in a multiple selection.

 2) If PickFirst objects selected does that with the picFirst Selection?

 

 

0 Likes
Accepted solutions (2)
869 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

Attached is a quick [and lightly tested] modification of my LayerQuellPick.lsp routine, available here, to allow Multiple objects, with or without pre-selection.  As with that one, it covers both ways to "quell" [my choice of a single word covering both] a Layer -- LayerQuellMult.lsp includes two commands, LOM for Layer Off, Multiple, and LFM for Layer Freeze, Multiple.  Since nested objects can't be pre-selected, it doesn't include the ability to deal with their Layers, but only those of top-level objects; for nested ones, use LOPN or LFPN from the link, which will require you to pick them one at a time.

 

There are possible enhancements, such as an overall Undo begin/end wrapper [as it is, if you want to undo, each Layer is restored in reverse order, one at a time].

Kent Cooper, AIA
Message 3 of 5

GeryKnee
Advocate
Advocate

 

The code is what i needed.

 

Is it easy to change it , so all the routine functions sould return in one UNDO Click?

 

Thanks,

Gery

0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

@GeryKnee wrote:

.... 

Is it easy to change it , so all the routine functions sould return in one UNDO Click?

....


Fairly easy --- try the attached updated version [again, lightly tested].

Kent Cooper, AIA
Message 5 of 5

GeryKnee
Advocate
Advocate

 

Yes, that's what i thouht about,

Thank yoy Very much for your help,

Gery

0 Likes