Getting part number and name from drawing file.

Getting part number and name from drawing file.

jordan783ZS
Advocate Advocate
331 Views
2 Replies
Message 1 of 3

Getting part number and name from drawing file.

jordan783ZS
Advocate
Advocate

I am trying to create a small app that will allow me to export a PDF of a drawing in fusion with a set naming scheme including the part number, part name, and drawing revision letter. The file name would be along the lines of "[{part number}] {part name} Rev {revision level}"    e.g "[01234] Bracket Rev B".
Unfortunately, I can't find any obvious way to pull this information from the active DrawingDocument object.

 

Is there any way to do this other than getting the information by opening the referenced 3D document to then get the part number from its properties? Obviously, this would work, but it slows down the process significantly and also doesn't include the revision level from the drawing.

0 Likes
332 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor

Unfortunately, this is not currently possible because of the limited API for drawing. Your workaround is the only way.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

jordan783ZS
Advocate
Advocate
That's a shame. Are there any plans to expand the drawing API in future?

0 Likes