Even if there is no complete answer, any suggestion or direction will be still great.
You'll probably need to process this in a few steps.
- Create arrays or lists for each type of component (Assembly, Part, Purchased, Fastener, Outside BOM)
- Create folders
- Get Assembly Components
- Loop through the components
- Sort lists
- Move components to folders using ReorderComponents
Good luck and have fun
I found a macro from 3dcontentcentral
It does 85 % of what I need. Except I need to sort by vendor and then part no. It sorts by file name.
Note: I do not need to create new folder. The parts are in the folders. I need to sort them only . Would you please help ?
Please see the attached macro
Sort Feature Tree.swp.zip 8.6 KB
Im currentrly working on a macro to do all of that.
Scan the assembly. find in the properties if the part or assembly corresponding of each category, then create the respective folders, and then proceed to move the components to their respective folders. all fo this i pretend to do it to export the files on a directory as it is on the tree too-
if every thing works fine i must have it ready by the 15 of january... i need to document, sort and rename, and update a lot of previous work, and i do not pretend to do it manually... i already invested a lot of time on this macro (i didn´t know OOP untill today) but it will pay itself with the time tha i am going to save from now
Does it ready yet?