The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 Comma in Attribute Tag messes up script

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
480vmotor Posted - May 16 2013 : 12:06:12 PM
Greetings,

We are using a customer border that has an attribute tag with a comma in it.

CITY,STATE

I was trying to use a script to change the City and State on a pile of the customer drawings but AutoCAD does not find the Attribute Tag with the comma in it.

I tried places quotes around it "CITY,STATE" and that didn't help. I can extract the info and change it using a LISP routine in the script but half of our drafters have LT 2012 or LT 2013 so I want to try to fix the problem without LISP.

We already changed the drawing set in question but I want to be able to change this field since we do lots of work with this customer and often need to change that TAG (CITY,STATE).

The customer always think they are right so we can't just fix the border and change the TAG to CITY_STATE.

Any ideas? Here is the script which works fine with any of the other attribute tags in the border:

-ATTEDIT
N
N
"customer_brdr"
CITY,STATE
*
TangleTown, MN
OtherTown, USA

Thanks,
Doug
1   L A T E S T    R E P L I E S    (Newest First)
480vmotor Posted - May 17 2013 : 2:34:17 PM
OK,


I spent a little time going over AutoCAD help, with this command I have been using for many years. So the solution was in AutoCAD Help. Below is an example of how I got around the TAG of CITY,STATE

Block name: customer brdr (put quotes around it since there is a space-I had already done this)

Attribute Tag, CITY,STATE: use wildcards to get around the comma - *CITY*. Using a question mark in place of the comma also works: CITY?STATE


Command: -ATTEDIT

Edit attributes one at a time? [Yes/No] <Y>: n

Performing global editing of attribute values.

Edit only attributes visible on screen? [Yes/No] <Y>: n

Drawing must be regenerated afterwards.

Enter block name specification <*>: "customer brdr"

Enter attribute tag specification <*>: *CITY*

Enter attribute value specification <*>:

1 attributes selected.

Enter string to change: Montevideo

Enter new string: Clara City


Doug

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.22 seconds. Snitz Forums 2000