How to add extra new attributes to 80+ symbols?

How to add extra new attributes to 80+ symbols?

Anonymous
Not applicable
537 Views
8 Replies
Message 1 of 9

How to add extra new attributes to 80+ symbols?

Anonymous
Not applicable

Hello,

 

I really need someone to help me out on this. I've now made 80+ symbols. But my boss suddenly expects me to add in new attributes into ALL OF THE SYMBOLS. I don't need the new attribute names to be visible. They just need to be associated with each of the symbols.

 

Examples:

Name

Alias

ID

KV

BIL

Rating

In-service date

Removal date

..

..

..

 

How can I add attributes quicker, instead of opening and editing each and every DWG file?

 

 

sincerely,

Paul

0 Likes
Accepted solutions (2)
538 Views
8 Replies
Replies (8)
Message 2 of 9

paullimapa
Mentor
Mentor

It's only easy if the steps are repetitive. So if all the attributes that need to be added in each symbol are exactly the same and can be inserted into the same coordinates like 0,0,0 and exploded, then that's doable.

Just create a drawing with all the attribute additions and save that drawing to a designated location like C:\Autodesk\AddAtt.dwg

Then place only the symbols you need to be modified in the same folder like C:\Symbols and then you can run a script to open each of the symbols in the folder & Insert AddAtt.dwg exploded at 0,0,0 at a scale of 1 with no rotation, Qsave. The script will automatically cycle through and do all 80+ symbols for you.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 9

Anonymous
Not applicable

Hi Mr. Li,

 

The method you described is exactly what we need!! However, could you please suggest or help me with writing a script? I doubt I have enough time to develop the script on my own given my limited knowledge and time.

 

EDITED REPLY: Actually, I won't have enough time to develop the script since I have to pass the project to the next person in a month. But I must improve it as much as possible.

 

 

sincerely,

Paul

0 Likes
Message 4 of 9

pendean
Community Legend
Community Legend
Accepted solution

@Anonymous Open all 80 of your blocks then just PASTECLIP the attributes you created in a master file and copied with COPYCLIP. You'd be about 20% done by now.

Message 5 of 9

paullimapa
Mentor
Mentor
Accepted solution

The simple way is to use Lee macs Script Writer to execute on all dwgs in folder

http://lee-mac.com/scriptwriter.html

The Script Line edit box just needs to include something like this:

 

_.Open *file* -Insert *C:\Autodesk\AddAtt 0,0 1 0 _.Qsave _.Close 

 

This assumes your additional attribute definitions are in AddAtt .dwg and 0,0 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 6 of 9

Kent1Cooper
Consultant
Consultant

@pendean wrote:

.... then just PASTECLIP the attributes ....


... or PASTEORIG, so you don't even need to tell it where to put them.  [Though, come to think of it, I don't think there's a Ctrl+ key combination for that, so maybe it's more work to type the command than to use Ctrl+V and pick.  But with a Tool Palette button....]

Kent Cooper, AIA
Message 7 of 9

pendean
Community Legend
Community Legend

@Kent1Cooper wrote:

@pendean wrote:

.... then just PASTECLIP the attributes ....


... or PASTEORIG, so you don't even need to tell it where to put them.  [Though, come to think of it, I don't think there's a Ctrl+ key combination for that, so maybe it's more work to type the command than to use Ctrl+V and pick.  But with a Tool Palette button....]


Even better if all the "origins" align of course. have you not CTRL+ that yet? I'm shocked 🙂

0 Likes
Message 8 of 9

Anonymous
Not applicable

Mr. Li,

 

This is insane. Legit a fully automated process. I just sat and watched the updates to complete. oh my my..

 

sincerely,

Paul

0 Likes
Message 9 of 9

paullimapa
Mentor
Mentor

glad that it worked out for you...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos