Batch text edit

Batch text edit

v.juustas
Participant Participant
1,926 Views
2 Replies
Message 1 of 3

Batch text edit

v.juustas
Participant
Participant

Hello everyone!

I need to change project's name, coordinates, address and project's number at 10 different pages for 500 projects. Is it possible to edit several text blocks at the same time? Or maybe someone has any other advise how to make this editing much faster??

Using Autodesk AutoCAD LT2019

 

 

 

 

0 Likes
1,927 Views
2 Replies
Replies (2)
Message 2 of 3

steven-g
Mentor
Mentor

Not in LT, you have several issues. Lt cannot use a macro to change layouts (unless you know the exact name of the layout). If the names are constant for all 500 drawings then you stand a chance.

Next problem is that LT cannot work with dialogue boxes in a macro and, text editing is only available through a dialogue box, as is the find/replace command. If you have used attributes in your title blocks to hold the information then again there are options, but we would need to see a few samples of the drawings to be able to show you how to possibly automate that.

BUT if your layouts are all named differently and there are different numbers of layouts per drawing, and you have only used text/mtext or fields for the information then there is nothing to do but roll your sleeves up and start editing.

There is certainly no built-in tools for doing anything like this using LT. Macro's and scripts in LT are the only methods available to try some form of automation, as LT has no programmable interfaces.

0 Likes
Message 3 of 3

janu319
Advocate
Advocate

Hi,

It's not that easy to do these changes in LT version, but my idea might help you in saving some time(as it did for me in the past) before someone come up with a best solution.  

As you have not uploaded the drawing file, as per the pictures I understood that the Text “NAME” needs to be replaced with “PROJECT NAME (ADDRESS, COORDINATES)” and this should be scaled to fit in the rectangle box. I hope the block names are same in all 500 projects.

As shown in the attached picture, use the FIND command to replace the text in all the blocks. That is part 1. 

 

Now you need to do some inventory to find the base point and best scale factor to adjust the text to fit in the rectangle box in the block, based on the insertion point of the Blocks this should be same for all blocks, note the XY coordinates and scale factor.  

Now in the below macro, change the BLOCK1 to the block name you want and change the XY coordinates 0.5,0.5 to the one you find in above step and change the 0.25 to the scale factor you find in the above step.

^C^C-BEDIT;BLOCK1;SCALE;\;0.5,0.5;0.25;BSAVE;BCLOSE;

Then add this macro in the tool palette and run, you need to select the Project name text then rest will be done by this macro. Add as many macros as you want by changing the block names. 

 

Or add one macro for all blocks like below, everytime you need to select the TEXT. Make sure the block is present in the drawing and check the locked layers. 

 

^C^C-BEDIT;BLOCK1;SCALE;\;0.5,0.5;0.25;BSAVE;BCLOSE;-BEDIT;BLOCK2;SCALE;\;0.5,0.5;0.25;BSAVE;BCLOSE;-BEDIT;BLOCK3;SCALE;\;0.5,0.5;0.25;BSAVE;BCLOSE;

 

 

 

0 Likes