Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script to change duplicate tag names and their values

1 REPLY 1
Reply
Message 1 of 2
daniel.j.wright
277 Views, 1 Reply

Script to change duplicate tag names and their values

Hi

 

I need to change the value of some tags in a title block on multiple drawings. I tried using Lee Macs attribute changer (http://www.lee-mac.com/batte.html). It works fine but not when tags have the same name.

 

I then looked at this code - http://www.cadtutor.net/forum/showthread.php?51231-Change-Attribute-Tags-for-Blocks-using-Lisp&p=480....

Idea was to change the tag names then use Lee Macs program. It too fails when there are duplicate tag names. It changes all tags not just the one I want.

 

In the the title block I have 3 tags with the name "NAME" but only one will have the value I'm looking to change. Does anyone have any idea if I could place an IF statement some where in the above codes (or another code altogether) to instruct that IF the tag name is "NAME" with value "Dennis (BSL)" then change either the tag name or the value to "Daniel"

 

Im pretty bad at this programming stuff but with so many drawings I need a easier, automated way of doing this.

 

 

Cheers

1 REPLY 1
Message 2 of 2
pbejse
in reply to: daniel.j.wright

Please refer to your post at CADTT for a possible solution Daniel. Besides the condtions you posted there are not hte same as the one here.

 

 

.... change either the tag name or the value to "Daniel"

 

.... change the tag name from "NAME" to "DESIGN ENG"? <-- as posted on CADTT

HTH

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost