Automated Drawing List Report

Automated Drawing List Report

sig.johnson
Contributor Contributor
1,171 Views
6 Replies
Message 1 of 7

Automated Drawing List Report

sig.johnson
Contributor
Contributor

I have a project with an existing drawing list report on sheet 2. I have also located the dwglst.set file for that report.

 

What I would like to do is generate the drawing list report and put it on the drawing.

 

So far, I have

(c:ace_dwglst_rpt_dbx (nth 5 (c:wd_proj_wdp_data)) "PATH-TO-dwglst.set" T)

This works great, but I end up at a dialog box (below).

sigjohnson_0-1651163738911.png

I would prefer to suppress the dialog box and do this without user input. That is, I would like to select "Put on Drawing", "Update Existing", "OK", then "Close" to update the drawing list with the list shown above, then close the  drawing list dialog box.

 

Any ideas for how to do this?

 

(If not, the only workaround I can think of is to pull the attributes I care about from the title block on each drawing then build a table using those values. This introduces significant complexity so I really want to avoid that.)

0 Likes
Accepted solutions (1)
1,172 Views
6 Replies
Replies (6)
Message 2 of 7

ВeekeeCZ
Consultant
Consultant

Don't think that anybody here will help you with the Electrical. Better post it over there (too).

Message 3 of 7

sig.johnson
Contributor
Contributor

Good suggestion, thanks.

 

Looks like someone on the electrical forum already had the answer: https://forums.autodesk.com/t5/autocad-electrical-forum/automated-drawing-list-report/m-p/9808787/hi...

0 Likes
Message 4 of 7

Sea-Haven
Mentor
Mentor

I am not sure but looks like 1 dwg with layouts so you can make a table that reads each layout and looks for a title block. You then get certain attribute values to put in your table. For me index.lsp.

 

Happy to have a look post a dwg with some layouts with title block.

0 Likes
Message 5 of 7

sig.johnson
Contributor
Contributor

That's what the answer on the electrical forum said too. No API call available, I will have to write the index.lsp script you described to look at each title block and update the sheet number.

 

I probably can't share the actual dwg files (NDA), but the project is actually many drawings, each with one layout & one title block.

0 Likes
Message 6 of 7

Sea-Haven
Mentor
Mentor

You need to look at sheetsets it supports multiple DWG sorry never used.

Message 7 of 7

sig.johnson
Contributor
Contributor
Accepted solution

The way I ended up doing this was writing a .lsp to scrub through the .wdp file in the project directory, which contains all the information I needed to put on the drawing list report. The .wdp is human-readable, so it's pretty straightforward to extract the attributes you care about from it.

 

I then added the information from the .wdp to the sheet named "DRAWING LIST" using command line commands.

 

It's not a super-slick, generalizable solution, but it works for me and hopefully will be useful to others with the same issue.

0 Likes