gdoyen
February 18, 2015, 12:47pm
1
Hello
I'm looking to create a button to select a folder. This selection allows me to open all the Step files in the folder. Otherwise, can you suggest a method to select all files with a ".stp" filter?
I tried this:
"Application.FileDialog(msoFileDialogFolderPicker). Show"
Without success :(.
Thank you
Gautier.
pl
February 18, 2015, 1:06pm
2
Hello
I found a macro that opens all the steps of a folder here:
https://forum.solidworks.com/servlet/JiveServlet/download/295648-84427/Batch%20Process%20STEP%20Files.zip
To be modified as needed.
Spring:
https://forum.solidworks.com/thread/56288
Otherwise, see this link for a dialog box where you can select multiple files:
https://forum.solidworks.com/thread/81202
2 Likes
gdoyen
February 18, 2015, 2:49pm
3
Ok thank you I found it thanks to your links.
On the other hand, when I load a WWTP it always asks me for the format of the WWTP. Is it possible to remove this step.
Attached is a screenshot.
capture.png
Hello
Check in Tools/Options/System Options/Default Templates that these 3 paths (2 useful in your case) are correctly populated to existing xxxdot files.
And/or check the option just below "Always use default document templates"
3 Likes
gdoyen
February 18, 2015, 4:07pm
5
It's okay, I've achieved my goal. On the other hand, for those who want to make the same type of macro as me, I advise you to add a "DoEvents".