API Instructions: Mass Save As

Mass Save As Macro

Download

Description

This macro works on a top level directory and the subfolders within it. It processes all the assemblies in the directories, save these assemblies as parts, then exports the part as IGES and STEP.

In the Main Sub Routine are three hard coded directories/variables to use. From SolidWorks go to Tools…Macros…Edit. To adjust.

  • TempPartFile = This is the temporary part this is used again and again for the “Save to Part” operation.
  • SaveToDirectory = Leave this as “” if you want it to be the same as the parent assembly, else give it a directory to dump the IGES/STEP files into it.
  • The final Directory highlighted is the top level folder for it to run on. This includes ALL Sub-directories.
Directories

NOTE: It uses SOLIDWORKS top open the assemblies and tempoary parts. So if you are processing a lot of files, this is going to take a long time. It’s best to “play” with a small directory to adjust the variables and verify the results.

Usage Agreement

The software/macro/customization is supplied “as is” and all use is at your own risk. GoEngineer disclaims all warranties of any kind, either express or implied, as to the features and functionality. Neither this agreement nor any documentation furnished under it is intended to neither express or imply any warranty that the operation of the software will be error‐free nor cause undesirable results on files that it is ran against. Under no circumstances shall GoEngineer be liable to any user for direct, indirect, incidental, consequential, special, or exemplary damages, arising from or relating to this agreement, the software, or users use or misuse of the software or any other services provided by GoEngineer. Such limitation of liability shall apply whether the damages arise from the use or misuse of the software or any other services supplied by GoEngineer (including such damages incurred by third parties), or errors of the software. Use of the software/macro/customization constitutes acceptance to this agreement.