Jump to content

AutoCAD 2008: GATTE fails on underscore in attribute


kpizzolatto

Recommended Posts

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...

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:

 

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*

Digital_Input_EX600.dwg

EX600-DXPB-MODULE.dwg

Link to comment
Share on other sites

  • 3 weeks later...

I am coming up with this same problem:

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.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...