Change multiple block attribute values in one click

Change multiple block attribute values in one click

toolbox2
Advocate Advocate
8,065 Views
9 Replies
Message 1 of 10

Change multiple block attribute values in one click

toolbox2
Advocate
Advocate

I have a lot of drawings, each with one or more title blocks with attributes. I need to update the attribute values with some predefined values. The same values will be used in whichever title block I select within the drawing. The title blocks are dynamic blocks.

 

Since the attribute and values will always be the same I thought I could customise a button to make this a one-click job for each title block that I select. Initially, I thought this could be accomplished with Lisp but then thought there must surely be an AutoCAD command I could use for this. But...I haven't found it.

 

The Express Tools command ATTIN looked hopeful. Put the tags and values in a text file and run the command. But how to execute this in one click? Need to pass the text file location and select the block without dialogue boxes.

 

I'm just not sure which way to go with this. Standard AutoCAD commands or Lisp. I'm unable to use scripts since  SCR files are prohibited on our locked down machines.

 

Any help would be gratefully received.

0 Likes
8,066 Views
9 Replies
Replies (9)
Message 2 of 10

vinodkl
Mentor
Mentor

Hi @toolbox2 

 

Have you tried the command "GATTE" (Global ATTribute Editor)? Using this command you can set a new value of the attribute globally inside the drawing 🙂

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes
Message 3 of 10

toolbox2
Advocate
Advocate

GATTE doesn't work with Dynamic Blocks, unfortunately.

 

0 Likes
Message 4 of 10

murray-clack
Advisor
Advisor

If you are looking for "one click" solutions to change global title-block info (i.e. project name, client name, project number, etc.) then using the Sheet Set Manager is your best bet.

0 Likes
Message 5 of 10

toolbox2
Advocate
Advocate

It would, wouldn't it? But not for this task facing me now.

0 Likes
Message 6 of 10

JTBWorld
Advisor
Advisor

Maybe our attribute editor app JTB BatchAttEdit can help. 


Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes
Message 7 of 10

RobDraw
Mentor
Mentor

I would use an XREF for identical information shared across multiple files.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes
Message 8 of 10

maratovich
Advisor
Advisor

 

Try using this - AutoReplaceCAD 

 

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 9 of 10

toolbox2
Advocate
Advocate

Thanks but the attribute values won't necessarily change for EVERY instance of a block, only the ones I select.

 

It's looking like an AutoCAD command solution isn't out there.

 

I found a modified GATTE command, GATTE2, on CadTutor.net. With some modification this looks hopeful.

0 Likes
Message 10 of 10

RobDraw
Mentor
Mentor

As much as some people think, AutoCAD cannot read minds. Any one click solution would require an amount of coding that might take much longer to write and troubleshoot than it would be to do the task manually.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.