|T O P I C R E V I E W
||Posted - May 16 2013 : 12:06:12 PM
We are using a customer border that has an attribute tag with a comma in it.
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:
|1 L A T E S T R E P L I E S (Newest First)
||Posted - May 17 2013 : 2:34:17 PM
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
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