Hi, im new to this forum. I wish i am at the right place to post my request. I am getting started with SW Macro!
All i want is to export over 1000 different configuration of one solidworks part into stl file. I know there is different way to proced. There is what i tried.
I made each configuration with design table with \$PRP:"SW-Configuration Name" linked to my wrap text.
Then i record a quick macro to save my current part into stl file by one click.
I figured it would be easier to begin with a simple command like that. I know i could use bach exportation but i need to master how to simply export my file into stl with the configuration name. Actually, it generate a stl file according to my part name.
The problem is i have to manually rename each stl file.
There is my VB file generated by SW macro
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = _
Application.SldWorks
Set Part = swApp.ActiveDoc
longstatus = Part.SaveAs3("C:\Users\Normand\Desktop\bague #9339_1, 2_epaisseur.STL", 0, 0)
End Sub
Actually i just want to know how to swap original save name with the configuration part in use
Forgive me, english is my second language.
Thank you.
Normand
SolidworksApi macros