Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Inject Layer Properties Into Its Objects As Overrides

koolestani
Explorer

Inject Layer Properties Into Its Objects As Overrides

koolestani
Explorer
Explorer

Hi

I want to move some objects into layer 0 and for the objects to retain their properties from their original layers. I understand for that to happen these properties must be overridden and not "by layer"; since overridden properties are retained even when the object is moved to another layer.

I have a situation where I have a layer containing both, objects with their properties set to "by layer" and others that have overridden properties. And there are many such layers. Is there a LISP solution that can make it so that the properties (lineweight, linetype & color) defined for the layer these objects are in, be applied to them all as overrides?

 

Thanks for the response 🙂.

0 Likes
Reply
422 Views
3 Replies
Replies (3)

pendean
Community Legend
Community Legend
"some objects" means what please?

BLOCKs do what you want, not much else: content inside the block are on layer 0 and set to BYBLOCK or BYLAYER for all the properties settings.
There are many "fix my blocks" lisp routines around, explore with a quick HELP.

Post back if you get stuck.

HTH
0 Likes

Kent1Cooper
Consultant
Consultant

I made a routine to do that with the elements in Block definitions, that should be easily modifiable to apply to selected top-level objects.

Try BENL0CL.lsp, available >here< [= Block Entities including in Nested Blocks within, to Layer 0 with Color & Linetype taken from entity's original layer].

If you want Color, Linetype and Lineweight, try >this< variant that adds that.

Kent Cooper, AIA
0 Likes

koolestani
Explorer
Explorer

Thanks for the replies and I'm sorry it took me so long to reply.

@pendeanyour method is kind of a false way of achieving the results I was hoping for.

@Kent1Cooperthis routine seems to be exactly what I was looking for! Thank you very much. I'll let you know if I find some quirks or need your help to get some bits tweaked. I saw BENL0, BENL0CL, and BENL0CLW, and went with BENL0CLW according to my requirements.

0 Likes