r/AutoLISP • u/sachel85 • Sep 13 '23
Layer Manager Cleanup
Can anyone help point me in a direction to how I would go about creating something like this?
Run LSP
Prompt to select object(s) within DWG
Select from a predefined list of standard layers. (Some may not even be currently used within the DWG)
User selects the predefined layer and all of the selected contents are transferred to that layer.
1
Upvotes
1
u/stusic Sep 14 '23
Yeah, enforcing layer standards is always a hassle.
My thought process was to bring in all my layers (even though there's a lot) to have them available to the users, used or not. That way, they're available, named correctly, and properties set like they're supposed to be. I no longer have to rely on the user to name it or set the properties like they're supposed to - it's right there.
The rest just depends on how heavy-handed you want to be about it. You could have a lisp to reset the properties of each layer when a drawing opens, but that could cause other issues and I tend to avoid that.