Seek a lisp to change the title block for each layout

Seek a lisp to change the title block for each layout

skchui6159
Advocate Advocate
714 Views
25 Replies
Message 1 of 26

Seek a lisp to change the title block for each layout

skchui6159
Advocate
Advocate

Referring to the previous post "https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-insert-attribute-in-all-curren..."

 

There are the new question that I can not solve. Can I replace the attribute value from the existing title block to the blank title block for each layout referring other dwg? Then insert the new block using the old title block boundary to the same place of each layout. Then erase the old title block in the layout. There are two title block size need to import, there are A1 and A4. The drawing size is indicated on each drawing. Thank you very much!

 

 

 

 

 

 

 

 

0 Likes
Accepted solutions (2)
715 Views
25 Replies
Replies (25)
Message 21 of 26

Sea-Haven
Mentor
Mentor

Re insert a new block, we had a new title block, new logo, new address details and so on. It was made by editing original block. So insertion point was correct and all atrribute details were correct. Same as Mosh-a has hinted have the title block as a separate dwg. Just used insert and selected that block, inserted at 0,0 and the message redefine would come up say yes then erase (entlast), as the new block exists there. .

0 Likes
Message 22 of 26

skchui6159
Advocate
Advocate

@Moshe-A @Sea-Haven Thank you very much!

0 Likes
Message 23 of 26

Moshe-A
Mentor
Mentor

@skchui6159 


Good Morning,

 

Does it work?

Isn't that deserve Mark As your Solution?

 

"I put in the zip for A1 and A4 running the lisp"

what's that?

0 Likes
Message 24 of 26

skchui6159
Advocate
Advocate

@Moshe-A Sorry, it should be I put in A1 and A4 block in dwg not zip to running lisp.

0 Likes
Message 25 of 26

Moshe-A
Mentor
Mentor

@skchui6159,

 

the new title blocks (e.g new title block-a4, new title block-a1) should be saved in folder as any other library blocks. to be insert by the lisp

does that answer your question?

 

your real challenge now is creating the scripts with WScript - tell me about that?

 

Moshe  

0 Likes
Message 26 of 26

skchui6159
Advocate
Advocate

@Moshe-A Yes, Sure! Cheer! Thank you very much! 

I try lot of dwg, it works.

 

I will try to run the script later. Thank your, Grateful!😁

0 Likes