batch change title block

batch change title block

mruPRQUJ
Advocate Advocate
2,702 Views
46 Replies
Message 1 of 47

batch change title block

mruPRQUJ
Advocate
Advocate

Hello,

There are lots of drawing title blocks that need to be changed.  One of them is the previous attribute is blank for some DWGs title blocks. The value needs to be added. Another one is revision, like 2A, 3A, 5A, and 10A. They need to be changed to 2B, 3B, 5B, and 10B. Could you please provide some advice? Thank you very much in advance. Michael

0 Likes
Accepted solutions (3)
2,703 Views
46 Replies
Replies (46)
Message 21 of 47

mruPRQUJ
Advocate
Advocate

Hi Mr. Moshe, I am outside right now. I will try it later, thank you very much! Michael

0 Likes
Message 22 of 47

mruPRQUJ
Advocate
Advocate

 I am outside right now. I will try it later, thank you very much! Michael

0 Likes
Message 23 of 47

mruPRQUJ
Advocate
Advocate

Hi Mr. Moshe, it did not work on my AutoCAD. I may make some mistakes. Could you please tell me a little more details about "don't forget to change the REV_# & R_NO_D&E attributes from 1B to 1A"?  I am wondering if you can make a video for me, thank you very much in advance.

0 Likes
Message 24 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ ,

 

Here is another update for you to test.

make sure you select the right blocks name (the ones you specified)

the revision attribute must be have the right value (e.g 1A, 2A, 3A) in order to be change to 1B, 2B, 3B...

 

Moshe

 

 

 

 

0 Likes
Message 25 of 47

mruPRQUJ
Advocate
Advocate

Great job! It works now. I wonder if is possible to select blocks and attributes automatically and modify multiple DWGs at one time? huge thanks.

0 Likes
Message 26 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ ,

 


@mruPRQUJ wrote:

Great job! It works now. I wonder if is possible to select blocks and attributes automatically and modify multiple DWGs at one time? huge thanks.


first, make this as your solution 😀

 

second i'm not complete with the solution of the REV_#,R_NO_D&E attributes. you say you have hundred of dwg's that they revision is 1A, 2A... and all you want is to change them to 1B, 2B? why not leave them 1A?

what A means what B means?

 

Moshe

 

 

 

 

 

0 Likes
Message 27 of 47

mruPRQUJ
Advocate
Advocate

sure, I will definitely make this as my solution. 1A, 2A, are the current DWGs revision, each DWG is unique. 1B, 2B are the new DWGs revision. Could you please make some changes to the latest revision? I need to two more versions to meet the different project requirements if it is possible. 1. only change date and revision number, 1A, 2A to 1B, 2B.  may need to delete some parts from the original lisp.  2. change 1A, 2A to 1, 2.     Last question, if leave revision as is, do not change this part. Will it make difference. In some projects, these parts do not need to be changed, thanks a lot!    

0 Likes
Message 28 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ ,

 


@mruPRQUJ wrote:

sure, I will definitely make this as my solution. 1A, 2A, are the current DWGs revision, each DWG is unique. 1B, 2B are the new DWGs revision. Could you please make some changes to the latest revision? I need to two more versions to meet the different project requirements if it is possible. 1. only change drawing number and revision number, 1A, 2A to 1B, 2B.  may need to delete some parts from the original lisp.  2. change 1A, 2A to 1, 2.     Last question, if leave revision as is, do not change this part. Will it make difference. In some projects, these parts do not need to be changed, thanks a lot!    


the above is not clear at all, you need to post sample dwg with before and after state for each block.

 

about running the lisp automatically on many files you need to create a script file to be run outside autocad

here is a link how to create that. study it

 

>> learn how to create script file << 

 

Attached the lisp prepare for run in script, now it does not pause for select object(s) but auto select the 2 blocks in whole drawing (e.g in model space and all layouts)

 

enjoy

moshe

 

0 Likes
Message 29 of 47

mruPRQUJ
Advocate
Advocate

Excellent, I will try it, thanks a million!

0 Likes
Message 30 of 47

mruPRQUJ
Advocate
Advocate

It is so great! Excellent!  I am not sure if it is too much for you. Can you please make one more version? only change date and revision number, 1A, 2A to 1B, 2B.   Also, I am wondering if it is possible to patch modify the multiple DWGs without opening DWGs? thank you very much from the bottom of my heart!

0 Likes
Message 31 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ ,

 

you still isn't clear

 


@mruPRQUJ wrote:

It is so great! Excellent!  I am not sure if it is too much for you. Can you please make one more version? only change date and revision number, 1A, 2A to 1B, 2B

you mean only 1A,2A but not 3A,4A....10A?

what's the problem with date? i design it as you asked

 

 Also, I am wondering if it is possible to patch modify the multiple DWGs without opening DWGs? thank you very much from the bottom of my heart!


You already study the link? wow you are fast learning. the AcCoreConsole.exe can run scripts open drawings not in graphics screen (on text window) but there is a small problem  😀  as far as i heard here, it is not capable of running aset.lsp.

 

Moshe

 

0 Likes
Message 32 of 47

mruPRQUJ
Advocate
Advocate

sorry I did not say my question clearly. The title blocks and revision number (1A, 2A) need to be changed. For title blocks part, in the beginning, lots of item need to be changed. 

tag           TITLE_LINE_1                    DATE        DESIGNED_BY      INDEPENDENT_CHK    DRAFTED_BY   

value        DMR SUBSTATION      2023FEB25    K. BAINS                R. CLELLAND                  M. RU                K. BAINS

 

TAG         INSPECTED_BY                 REVIEWED_BY             ACCEPTED_BY

VALUE     BLANK                                BLANK                           BLANK

0 Likes
Message 33 of 47

mruPRQUJ
Advocate
Advocate

for the title blocks part, only date need to be changed,  please remove other items if it is possible. revision number keep the same. 1A, 2A to 1B, 2B

0 Likes
Message 34 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ wrote:

sorry I did not say my question clearly. The title blocks and revision number (1A, 2A) need to be changed. For title blocks part, in the beginning, lots of item need to be changed. 

tag           TITLE_LINE_1                    DATE        DESIGNED_BY      INDEPENDENT_CHK    DRAFTED_BY   

value        DMR SUBSTATION      2023FEB25    K. BAINS                R. CLELLAND                  M. RU                K. BAINS

 

TAG         INSPECTED_BY                 REVIEWED_BY             ACCEPTED_BY

VALUE     BLANK                                BLANK                           BLANK


the above is clear and done. still the revision thing is not clear so i will leave it for now cause it's close to midnight here, must go to bed, tomorrow another work day 😀 Good Night my friend

0 Likes
Message 35 of 47

mruPRQUJ
Advocate
Advocate

Revision part no change. could you please attach the lisp? or tomorrow is ok, thanks a lot! have a good night! 🙂

0 Likes
Message 36 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ ,

 


@mruPRQUJ wrote:

Revision part no change. could you please attach the lisp? or tomorrow is ok, thanks a lot! have a good night! 🙂


Revision is now on comment

 

0 Likes
Message 37 of 47

mruPRQUJ
Advocate
Advocate

Hi Mr. Moshe, I am sorry I did not say it clearly. For the tile block part, only keep "date", remove other part. Now it is opposite, 'date' did not work, other part work (no longer needed), many thanks.

0 Likes
Message 38 of 47

mruPRQUJ
Advocate
Advocate

Hi Mr. Moshe, I want to change revision from 2A, 3A, 5A to 2, 3, 5. could you please advise me how to modify the lisp? T many thanks. Michael

0 Likes
Message 39 of 47

Moshe-A
Mentor
Mentor

@mruPRQUJ ,

 


@mruPRQUJ wrote:

Hi Mr. Moshe, I am sorry I did not say it clearly. For the tile block part, only keep "date", remove other part.

Now it is opposite, 'date' did not work, other part work (no longer needed), many thanks.


Sorry, you can not change your mind every day, we must come to end this. the date is working fix as you ask

 

 

 

 

0 Likes
Message 40 of 47

Moshe-A
Mentor
Mentor
Accepted solution

revision is changed

0 Likes