Grab an attribute then use it to turn off a layer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning,
I am very new to LISP and need your help, at this point I can only make minor changes to existing code but a lot of the code still is magic to me.
I have a block "ULTRA INFO" with an attribute "CIRCID" that can be used to help turn off a layer with that name that has "-DATA" added to the end. What I think we need to do is to grab the attribute variable and store it, then add a wild card * to the end, lastly have it turn off a layer with that name.
Here is my thought:
Some how scan the drawing for an attribute named "CIRCID" if it is found store it as "LAName"
Then turn off the layer: (command "-Layer" "off" "(LAName)*" "")
If an attribute named "CIRCID" doe not exist cancel and end the lisp.
Any help possible is greatly appreciated.
Thank you all in advance.
Brian