Macro – Save as STEP

Macro – Save as STEP (Also Parasolid and so forth)

I am looking for a macro to do the following:
Open part file.
See that it has multiple configurations with their own specific part number.
Go through each configuration and save it as the part number as a STEP file.

I’d like it to pick the entire folder and go through every part and assembly and save them to “STEP FILES”.
It would be like Task Scheduler only better.

Looks like our tool DPS JobBox could be helpful: https://www.dps-software.de/produkte/produktdatenmanagement/dps-tools-jobbox-suite

It’s a software that brings a collection of actions (like “Start SOLIDWORKS”, “open a document”, “run a macro”, …) that can be organized as required and then you can e.g. run your job on a selected folder filtering the desired file extensions.

The logic behind it is comparable to programming but without having to know the language. You can even use loops etc.

Feel free to test it. In its basic version it’s free to use, it just needs a (free) registration to get rid of the splash screen for each job run.

What you’ve asked here should be easy to be done with it.

Hi
I use this to export step files. Each config to a separate step. Solidworks must running and the file mut be open when using this macro.
SaveConfigsAsStep.swp (47 KB)

I just discovered this wonderful SaveConfigAsStep macro. Exactly what I require. Thanks to author!

  1. (API novice here) I see the code where .step is specified. Could this be replaced by .STL for a someone that requires that format for 3DP specifically, or not that simple?
  2. The file type embedded in the macro is .step Now would it default to AP203 or AP214 like I see with SaveAs options manually, or what controls that? Not that I have had an urgent need to distinguish, AP203 works fine in my own printer & seems to be more common/applicable.
  3. In layman’s terms what is the code about regarding ‘revision’ & ‘IGS’?

This looks like one of my very old macro but with changes. I’ll try to answer to your questions anyways

  1. Yes you can change the STEP to STL, and it will save as STL

  2. Unless you specify 214 format, the macro will default to 203

  3. Sometimes revision is required to be added to the exported file name. Hence revision value is fetched from the custom or config properties, and added to the file name. And user may want to have both IGS and STEP, and hence both formats are used. You can comment out those line, and IGS will not be saved.

I hope this will resolve your queries.

2 Likes

Excellent, thanks for reply!