Programmatically Modify the Drawing Number

Programmatically Modify the Drawing Number

dsciarrinoYRT9B
Explorer Explorer
225 Views
1 Reply
Message 1 of 2

Programmatically Modify the Drawing Number

dsciarrinoYRT9B
Explorer
Explorer

Hello all,

I've built a script using Python to parse the WDP file, allowing me to change the sheet descriptions, folder structure, and sheet sections. Sadly, the Drawing Number (%D) often used in our Title Blocks is not accessibly via this WDP file. From what I gather, it's included in the proprietary DWG format.

 

I would like to develop a tool to go through each drawing in my project and change the drawing number (%D) to the filename of that drawing. For example, if a drawing filename is "18500-55-100.dwg", then I want the %D value to be "18500-55-100".

 

Do I need to do this in Lisp, or VBA? I have more familiarity with VBA, but only within the context Microsoft Excel so I would need lots of supporting information.

 

I have absolutely zero experience with Lisp, or any functional programming for that matter. If it needs to be done in Lisp any supporting information (like implementation within AutoCAD, syntax, code examples, etc.) would be extremely appreciated!

 

Let me know if you need any more information.

0 Likes
226 Views
1 Reply
Reply (1)
Message 2 of 2

Moshe-A
Mentor
Mentor

@dsciarrinoYRT9B  hi,

 

Post a sample dwg file with a view before and after.

 

Moshe

 

 

 

0 Likes