Hi,
In a standard drawing with an attribute we would like to extract the value of an attribute and then thaw and freeze some layers in the drawing.
Anyone have any suggestions.
Thanks in advance
Hi,
In a standard drawing with an attribute we would like to extract the value of an attribute and then thaw and freeze some layers in the drawing.
Anyone have any suggestions.
Thanks in advance
Welcome to AUGI!
Where is the attribute, in a title block, etc?
What's the block's name?
What's the attribute' tag?
Does the attribute (and block inherently) exist in all drawings, or only some?
Is there more than one of these special attributes in any given drawing?
How is the attribute's value being stored to the attribute (manually, or programmatically)?
What possible values can the attribute have?
Can the user change the attribute value to something that is not part of the desired criteria?
... More information is needed.
"Potential has a shelf life." - Margaret Atwood
Hello RenderMan,
The attibute is in a titleblock.
The block's name is _TitleB
Tag is language
The attribute excists in every drawing
The attribute can have 10 diffrent value's (NL, EN, DE, TR, RU, FR, ES, GR, IT, PT)
There is only one of these special attributes in each drawing.
After the value of the attribute is known we cab run a script the Freeze and Thaw
the layers that correspondent to the language we need.
example script name Lang_EN.scr
THX for Your help sofar!
Have you tried a search of the AutoLISP forum for threads regarding attributes? There are a few examples that show how to get the value of a known attribute. Once you know the value, you could run the specific script. This shouldn't be too hard to work up.
In working it up on your own, you'll learn a bit on how to handle similar tasks in the future.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
These functions may help you towards your goal.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
@ Lee Mac.
Thanks for Your help!
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
post your title block and layer list for each language
a drawing with defined layers would be helpful too.
http://www.watsonlisp.com
Artificial Intelligence for AutoCAD
Find detail drawings by text and attribute content!
6000 lines of code and 14 years in development.