Results 1 to 8 of 8

Thread: Reading Attribute Value to Thaw and Freeze layers

  1. #1
    Member
    Join Date
    2011-06
    Posts
    3

    Thumbs down Reading Attribute Value to Thaw and Freeze layers

    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

  2. #2
    Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    2,401

    Default Re: Reading Attribute Value to Thaw and Freeze layers

    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

  3. #3
    Member
    Join Date
    2011-06
    Posts
    3

    Thumbs down Re: Reading Attribute Value to Thaw and Freeze layers

    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!

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Reading Attribute Value to Thaw and Freeze layers

    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

  5. #5
    I could stop if I wanted to Lee Mac's Avatar
    Join Date
    2009-03
    Location
    London, England
    Posts
    280

    Default Re: Reading Attribute Value to Thaw and Freeze layers

    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

  6. #6
    Member
    Join Date
    2011-06
    Posts
    3

    Default Re: Reading Attribute Value to Thaw and Freeze layers

    @ Lee Mac.

    Thanks for Your help!

  7. #7
    I could stop if I wanted to Lee Mac's Avatar
    Join Date
    2009-03
    Location
    London, England
    Posts
    280

    Default Re: Reading Attribute Value to Thaw and Freeze layers

    Quote Originally Posted by gvriend820643 View Post
    @ Lee Mac.

    Thanks for Your help!
    You're welcome! Good luck in your task!
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?
    Just another Swamper

  8. #8
    I could stop if I wanted to aaronic_abacus's Avatar
    Join Date
    2006-04
    Posts
    316

    Default Re: Reading Attribute Value to Thaw and Freeze layers

    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.

Similar Threads

  1. Turning multiple layers freeze/thaw on/off
    By Ibex in forum AutoLISP
    Replies: 8
    Last Post: 2011-05-20, 05:42 AM
  2. Layer Freeze/Thaw toggle routine
    By jgardner.79905 in forum AutoLISP
    Replies: 5
    Last Post: 2010-02-01, 08:39 PM
  3. freeze or thaw in current viewport
    By e.jansen in forum AutoCAD General
    Replies: 0
    Last Post: 2009-09-16, 09:34 AM
  4. Freeze/Thaw/On/Off.....
    By rcroke in forum ACA General
    Replies: 1
    Last Post: 2009-02-04, 08:50 PM
  5. Freeze & Thaw Layers
    By rhayes.99001 in forum ACA General
    Replies: 1
    Last Post: 2007-08-23, 01:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •