How to Query Drawing Properties

Hi All,

For the longest time, my company only had one mechanical engineer (me!).  We’re now expanding and so I’m looking at using Workgroup PDM to lock things down a bit.  I am having a tough time working out the revision control, which is what I expected it to do the best.

Before, we’d have a part named 12345 Rev A.sldprt and a drawing named 12345 Rev A.slddrw.  If one rev changed, the other rev changed.  When we send our parts to be fabricated, we’d send 12345 Rev A.step and 12345.pdf.  This all made sense as the revs were always the same.

Now, with wPDM, it doesn’t seem like there is a way to enforce the part and the drawing revs to be the same, but I still need the same output files.

My thinking is that both the sldprt and slddrw would simply be named 12345.*.  From there, I thought I could put a button on a toolbar that if a user clicked it (with a drawing open), it would create the pdf and the step file with the revision of the drawing appended to the filename.  I need it to be the revision of the drawing and not the part as that is what the pdf will say and any mismatch will confuse everyone.

The main part I am getting hung up on, is how to access the Revision property via macro.  I have figured out how to set a property in a drawing (AddCustomInfo3), but I can’t for the life of me figure out how to get one.

Any help would be appreciated!

Thanks!

Dan

SolidworksApi macros