Update title block of all drawing in background using Autolisp

Update title block of all drawing in background using Autolisp

22352065NTPYQ
Participant Participant
396 Views
5 Replies
Message 1 of 6

Update title block of all drawing in background using Autolisp

22352065NTPYQ
Participant
Participant

I am using AutoCAD Electrical 2025 and need to update the title block of all drawings based on the Project Description while running the process in the background. When performing this task through the GUI, there is an option called "Activate each drawing to process." If this option is unchecked, the title block updates occur without bringing each drawing to the foreground.

I want to achieve the same background title block update programmatically using AutoLISP. How can this be implemented to ensure the updates occur without activating each drawing?

Thanks in Advance!!

0 Likes
397 Views
5 Replies
Replies (5)
Message 2 of 6

DumR0
Advocate
Advocate

Hi, 

 

There are 3 steps do this IF the drawing contains 1 layout:

1 creating a batch file

2 a script file

3 a lisp program

 

 

OR if its an attribute and multi-layout DWG ,  just use GATTE command.

 

 hope this info will help you.

0 Likes
Message 3 of 6

22352065NTPYQ
Participant
Participant

I am using the wd_tb_process_one function in AutoLISP along with ace_projectwide_script to update the title block across all drawings. However, this approach opens each drawing during the process. I want to perform the title block update in the background without opening the drawings. How can this be achieved?

0 Likes
Message 4 of 6

DumR0
Advocate
Advocate

then  you must use / search  how to do this in Autocad COM interface  +  batch , here is link:

https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-DA0AABA4-BED8-433A-864E-EBCE43195FF5

its like create VBA program that access the autocad database (you must write the link were the program will find the . dwg), then apply the VBA tru  a batch file

 

 

0 Likes
Message 5 of 6

Sea-Haven
Mentor
Mentor

Do a deep search for Accoreconsole see if it is supported in Electrical, it allows you to run lisp programs on a closed dwg. You can write a script that opens a dwg for editing, it does not open graphically rather ready to edit, then run a lisp. Very Very fast. 

 

AutoCAD 2025 Developer and ObjectARX Help | AutoCAD Core Console | Autodesk

 

@paullimapa has some nice examples about how to use.

0 Likes
Message 6 of 6

paullimapa
Mentor
Mentor

I don't know much about AutoCAD Electrical but perhaps@22352065NTPYQ can share a dwg with the Title Block and then exactly where to locate the Project Descriptions if that's available in vanilla AutoCAD, then that would be a good start to see if Accoreconsole is the way to go or not.


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