Is there a quick way to add THOUSANDS of occurrences to an assembly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
I need to add a LOT of files from a folder structure and put them into an assembly. It doesn't matter how or where, they just need to be in it. 4-5000 individual files, and growing. Some are iam's, most are just ipt's.
Usually I do this by filtering the files needed in Total Commander, then drag'n'drop the list into an empty assembly. This works somewhat,m but it is super slow and clogs the entire machine (I guess it's way too much dde commands to interpret.) It runs the whole day and not even finishes... Also if there is any kind of error in any of the files, then the whole process so far is lost. I tried doing this by only adding 1000 files at once and saving after each succesful batch. This works somewhat better, but not really reliable and needs attention too.
So I wrote a macro that collects the file list and adds ever single one, one by one to the occurrences. This starts to work really quickly at the beginning, but slows down to a crawl really fast. I did try to put all kind of trickery to speed it up: defer updates, no screen updating, wrapping it up in a single "undo" transaction, saving the document after every 100 files, etc. None of these improved the speed much. It still runs the whole day - and once I got it to actually finish, only to be greeted by the "inventor has crashed" report... Also, tested this on a Win10 machine, and there it just grinds to a complete halt where I can't even ctrl+break and stop the macro running or do anything with inventor - but it just keeps running (I can see how it pulls the files from the server), it just stops responding..
So, is there any other way I could try?
IV2018.3