AnsweredAssumed Answered

Batch Convert STP files to SLDASM and then Save SLDASM as SLDPART

Question asked by Zack Bell on Mar 16, 2019
Latest reply on Mar 18, 2019 by Zack Bell

Hello all -

 

Long time Solidworks user but never really got into the Macro side of it. I have been attempting to stitch together a Macro with all the topics I have found in the Forum but not having any luck at all. I am hoping that some one can help me out and provide a solution. I have been working on this for a few days and its just not working.

 

Problem: I need to import several hundred Piping parts, PLC Parts, and Specialty parts. I have all of them in STP format currently. When using the import tool it creates SLDASM with all the sub components as well. Since all of these parts are for reference I don't need all the sub components and want to save the assemblies as Parts with External faces instead. I know this is doable as I have several pieces of the formula but I just can't figure out how to stitch it all together.

 

If you can help me out it would be great. If you can provide a macro with comments so that I can learn as well that would be awesome.

 

I am using Solidworks 2017 if that matters at all. Also I would like to be able to point the macro to where my folder is and if possible I need it to process sub folders if possible but not a requirement. I also need to tell it where to put the output files as well since they are different directories.

 

All help is welcome and greatly appreciated.

 

Thanks

Outcomes