Here is a good one for you guys,
Has anyone ever had a need to isolate numerous part files from an assembly and place them somewhere else? I run into this often enough that now it is time to automate this if I can. Rather than select individual files from a existing widows folder, I would prefer to select them easily from an open assembly in SW. It would work like this: once I open all these part files, via right click open part, I would close the main assembly and be left with a number of open part files. (This is where a clever macro would come in handy.) At this point I would run a macro to collect all open part files and place them in a new windows folder. Actually the same function as "pack and go" but have the ability to pack multiple parts instead of just one.
Any thoughts?
SolidworksApi macros
You can simply loop thru the open documents and use SaveAs option. You'll have to specify the file full new path.
The macro should be few line only so I can quickly write it up. But how you want to specify the New path?
But how you want to specify the New path?
That is the question. A script would have to prompt you to specify a new file path, but if that is so, would it then have to be an "add-in"?
This could be a simple browse button macro.
So how would you even begin this Deepak?
Check the example macro here:
Deepak, thank you! That is along the lines of what I was thinking. Now how would I add files to the list box (if I even need to)? So if I have a number of files open, how would I get them all to save to the chosen file path?
Simple loop thru all open files and use saveas with copy option
I'll see if I could make that work. Thank you Deepak!!