Multifunctional revision export macro.
Hi all,
I have the following macro in mind, but not skilled enough to make it myself. I was hoping someone would have the time to help out with it. It's basically to speed up revision exporting by combining several steps.
-
When in an assembly, a part (part in assy or sub assy) is selected in feature tree and macro is activated by user.
-
Prompt appears asking for a save path and gives separate checkbox options for STEP, PDF and DXF. (preferably save path and checked choices are remembered upon next activation of the macro.)
-
User inputs save path and checks the export options that are needed (multiple choices possible). Presses export button.
-
For each export option, following is done by macro: -STEP: 3D model of part is exported as STEP214 to chosen save path. -PDF: 2D Drawing is exported as color PDF to chosen save path (all drawing sheets) -DXF : 2D Drawing is exported as DXF to chosen save path (all drawing sheets)
As for the naming of the exported files. Our file names have the following format : XXXXXXXX__XXXXXXX_XXX.SLDPRT (there are double underscores after the first row of alphanumeric characters). The exported files should be named with the original file names, but the first underscore should be replaced by a revision letter that is already in one of the properties of the part. For example: 12345BG100__EXAMPLE_PART.sldprt has in one of its properties the revision letter C. When exported to STEP, it's save name is :12345BG100C_EXAMPLE_PART.step
Three additional super nice bonuses would be: -To be able to select multiple parts in the feature tree of an assy, and have them all exported separately as described above by only activating the macro once. -To get an error prompt when no alphabetical character is found in the specified property field of the part. This part is skipped for the export session. -To get an error prompt when file with the export name already exists in save path. Either choice is given to overwrite/skip, or part is skipped automatically for the export session.
Im really curious if this is something that is possible and if anyone would be willing to help build it. It would be greatly appreciated. Thanks for your time,
Zeuven