I'm on my next challenge:
I need to export a part to STL, using VBA.
I have tried the macro recorder and the docs, but I'm lost in the details.
Does somebody have a code example for this?
Any input much appreciated.
Got it working after about 3 hours.
Set swModel = swApp.ActiveDoc
outFile = "export.stl"
longstatus = swModel.SaveAs3(outFile, 0, 0)
If you search the forum I think there might be a couple macros floating around, if you can't find any thing, I would start with this.
2017 SOLIDWORKS API Help - SaveAs Method (IModelDocExtension)
VBA Macro: save selected body as STL
This works when exporting whole part
Retrieving data ...