+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Forum Newbie
    Using
    Mechanical 2008
    Join Date
    Mar 2010
    Posts
    1

    Default AutoCAD 2008: GATTE fails on underscore in attribute

    Registered forum members do not see this ad.

    I have a couple hundred drawings with an assortment among 30 blocks that need an attribute updated.

    GATTE fails when there is an underscore.
    GATTE reports the full complement of attributes are recognized.
    BUT, when I specify the attribute I want, GATTE reports it's invalid.
    The interesting thing is that the list of "expected" attributes is truncated one character before the first underscore character.

    Has anybody seen this behaviour before? Is there another way to get GATTE to recognize the attribute specified from the command line?

    Specifying a point on the drawing (as if I "clicked" the attribute) for the script has its own complications, which I would very much like to avoid.

    Thanks to anyone who has a solution for this! Details are below and blocks are attached.



    Using GATTE, I can execute the following from command line or script, and it works just fine...
    Code:
    Command: gatte
    
    Initializing...
    Select block or attribute [Block name]: block
    
    Enter block name: EX600-DXPD-MODULE
    
    Known tag names for block: UNIT NODE TYPE PLC DNO10 RUNG PAGE CODE DNO7 DNO6
    Select attribute or type attribute name: none
    node
    
    Block: EX600-DXPD-MODULE   Attribute tag: NODE
    Enter new text: [newnodenumber]
    
    Number of inserts in drawing = 1  Process all of them? [Yes/No] <Yes>:
    
    Please wait...
    1 attribute changed.
    But when I try the same thing with a block that has underscores in the attribute names, GATTE fails:

    Code:
    Command: gatte
    
    Initializing...
    Select block or attribute [Block name]: block
    
    Enter block name: Digital_Input_EX600
    
    Known tag names for block: RUNG PAGE TEXT4 TEXT3 TEXT2 TEXT1 TERM_24V TERM_COM 
    TERM ADDRESS UNIT NODE TYPE PLC DNO10 RUNG PAGE CODE DNO7 DNO6
    Select attribute or type attribute name: none
    node
    
    
    *Invalid selection*
    Expects a point or RUNG/PAGE/TEXT4/TEXT3/TEXT2/TEXT1/TER
    
    Select attribute or type attribute name: *Cancel*
    Attached Files

  2. #2
    Super Member AQucsaiJr's Avatar
    Computer Details
    AQucsaiJr's Computer Details
    Operating System:
    Windows XP Pro
    Computer:
    Dell Optiplex 330
    Monitor:
    Dell
    Discipline
    Electrical
    AQucsaiJr's Discipline Details
    Occupation
    Engineering Technition / Power Utilities
    Discipline
    Electrical
    Details
    Power Utility Protection and Control Engineering
    Using
    Electrical 2012
    Join Date
    Nov 2008
    Location
    USA, Florida, Orlando
    Posts
    511

    Default

    I am coming up with this same problem:
    Code:
    Command: GATTE
    
    Select block or attribute [Block name]: BLOCK
    
    Enter block name: BORDER
    
    Known tag names for block: REVDESCRIPTION1 REVDESCRIPTION2 REVDESCRIPTION3 
    REVDESCRIPTION4 REVDATE1 REVDATE2 REVDATE3 REVDATE4 REVDWNBY1 REVDWNBY2 
    REVDWNBY3 REVDWNBY4 REVAPPBY1 REVAPPBY2 REVAPPBY3 REVAPPBY4 REVDESCRIPTION5 
    REVDESCRIPTION6 REVDESCRIPTION7 REVDESCRIPTION8 REVDATE5 REVDATE6 REVDATE7 
    REVDATE8 REVDWNBY5 REVDWNBY6 REVDWNBY7 REVDWNBY8 REVAPPBY8 REVAPPBY7 REVAPPBY6 
    REVAPPBY5 DRAWN DSGN CK'D APPD DATE DWGDESCRIPTION1 DWGDESCRIPTION2 SCALE 
    DWG_NO REV
    Select attribute or type attribute name: REVDESCRIPTION1
    
    Invalid attribute name.
    Known tag names for block: REVDESCRIPTION1 REVDESCRIPTION2 REVDESCRIPTION3 
    REVDESCRIPTION4 REVDATE1 REVDATE2 REVDATE3 REVDATE4 REVDWNBY1 REVDWNBY2 
    REVDWNBY3 REVDWNBY4 REVAPPBY1 REVAPPBY2 REVAPPBY3 REVAPPBY4 REVDESCRIPTION5 
    REVDESCRIPTION6 REVDESCRIPTION7 REVDESCRIPTION8 REVDATE5 REVDATE6 REVDATE7 
    REVDATE8 REVDWNBY5 REVDWNBY6 REVDWNBY7 REVDWNBY8 REVAPPBY8 REVAPPBY7 REVAPPBY6 
    REVAPPBY5 DRAWN DSGN CK'D APPD DATE DWGDESCRIPTION1 DWGDESCRIPTION2 SCALE 
    DWG_NO REV
    Select attribute or type attribute name: DRAWN
    
    Invalid attribute name.
    Known tag names for block: REVDESCRIPTION1 REVDESCRIPTION2 REVDESCRIPTION3 
    REVDESCRIPTION4 REVDATE1 REVDATE2 REVDATE3 REVDATE4 REVDWNBY1 REVDWNBY2 
    REVDWNBY3 REVDWNBY4 REVAPPBY1 REVAPPBY2 REVAPPBY3 REVAPPBY4 REVDESCRIPTION5 
    REVDESCRIPTION6 REVDESCRIPTION7 REVDESCRIPTION8 REVDATE5 REVDATE6 REVDATE7 
    REVDATE8 REVDWNBY5 REVDWNBY6 REVDWNBY7 REVDWNBY8 REVAPPBY8 REVAPPBY7 REVAPPBY6 
    REVAPPBY5 DRAWN DSGN CK'D APPD DATE DWGDESCRIPTION1 DWGDESCRIPTION2 SCALE 
    DWG_NO REV
    Select attribute or type attribute name: APPD
    
    Invalid attribute name.
    Known tag names for block: REVDESCRIPTION1 REVDESCRIPTION2 REVDESCRIPTION3 
    REVDESCRIPTION4 REVDATE1 REVDATE2 REVDATE3 REVDATE4 REVDWNBY1 REVDWNBY2 
    REVDWNBY3 REVDWNBY4 REVAPPBY1 REVAPPBY2 REVAPPBY3 REVAPPBY4 REVDESCRIPTION5 
    REVDESCRIPTION6 REVDESCRIPTION7 REVDESCRIPTION8 REVDATE5 REVDATE6 REVDATE7 
    REVDATE8 REVDWNBY5 REVDWNBY6 REVDWNBY7 REVDWNBY8 REVAPPBY8 REVAPPBY7 REVAPPBY6 
    REVAPPBY5 DRAWN DSGN CK'D APPD DATE DWGDESCRIPTION1 DWGDESCRIPTION2 SCALE 
    DWG_NO REV
    Select attribute or type attribute name: SCALE
    
    Invalid attribute name.
    Known tag names for block: REVDESCRIPTION1 REVDESCRIPTION2 REVDESCRIPTION3 
    REVDESCRIPTION4 REVDATE1 REVDATE2 REVDATE3 REVDATE4 REVDWNBY1 REVDWNBY2 
    REVDWNBY3 REVDWNBY4 REVAPPBY1 REVAPPBY2 REVAPPBY3 REVAPPBY4 REVDESCRIPTION5 
    REVDESCRIPTION6 REVDESCRIPTION7 REVDESCRIPTION8 REVDATE5 REVDATE6 REVDATE7 
    REVDATE8 REVDWNBY5 REVDWNBY6 REVDWNBY7 REVDWNBY8 REVAPPBY8 REVAPPBY7 REVAPPBY6 
    REVAPPBY5 DRAWN DSGN CK'D APPD DATE DWGDESCRIPTION1 DWGDESCRIPTION2 SCALE 
    DWG_NO REV
    Anyone have a clue on how to fix this??? I want to run this command in a script through a little over 100 drawings.
    Batch Text Find & Replace: Here

  3. #3
    Senior Member
    Using
    AutoCAD 2011
    Join Date
    Mar 2009
    Location
    Queensland, Australia
    Posts
    350

    Default

    Registered forum members do not see this ad.

    Delayed response: A similar (perhaps the same) problem was talked about here.

Similar Threads

  1. GATTE 2 (Global Attribute Edit with Layout Select)
    By SteveK in forum AutoLISP, Visual LISP & DCL
    Replies: 22
    Last Post: 5th Jun 2013, 05:33 pm
  2. Replies: 2
    Last Post: 23rd Jul 2008, 02:53 pm
  3. AutoCAD 2008 Publisher & Attribute extraction
    By Kevwith in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 11th Apr 2008, 09:56 pm
  4. AutoCAD 2008 Lite - Attribute Extraction
    By Steve_Bedford in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 17th Feb 2008, 03:01 pm
  5. autocad fails to scale lineweights
    By nlao in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 3rd May 2005, 03:25 am

Bookmarks

Posting Permissions

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