The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 Comma in Attribute Tag messes up script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

480vmotor
New Member

11 Posts

Posted - May 16 2013 :  12:06:12 PM  Show Profile  Reply with Quote
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

480vmotor
New Member

11 Posts

Posted - May 17 2013 :  2:34:17 PM  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.32 seconds. Snitz Forums 2000