Hi All,
I am after a macro that would allow me to save both a PDF & JPEG of a drawing with the current revision status of the part/assembly suffixed to the output file name. The revision status will be on a revision table found on the drawing rather than a custom property of the part/assembly.
Essentially I would like to see a the output file name of both the PDF & JPEG to be "XXXXXX-A" and saved in the folder that the part/assembly is currently saved in. I'm hoping that if/when the part/assembly is ever up-issued the macro will see the next revision status and will amend the new output file name accordingly (XXXXXX-B) once the macro is run again.
Is this something that can be done? I have very little experience with macro writing and this would save me a huge amount of time in my day to day routine.
Any help would be greatly appreciated!
James
Hi James,
This forum has been a huge help in crafting my own export macro. So maybe i can give back a little.
I copied a chuck of macro from a larger macro, this roughly does what you're asking for. it will also export a dxf and step(of the associated part or assembly)
It gets the revision info from the custom properties of the part, so that's not exactly what you're asking. But there's also code to look up the latest revision in a table, so with a little re-work you should be able to get what you need.
I have little programming experience so this might not adhere to best programming practises and being from a larger macro, there are some Dim's that aren't used.
Hope this helps!
Br, Jan-Willem.