- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Recently I was asked to create solution for batch export geometry of some filtered assembly components (including cuts done within assembly environment) to IGES.
The only way I've found to do so is to leave the only components visible and then export the whole assembly.
My first try was to cycle through AllLeafOccurrences, select one, perform Isolate command, do export and perform UnIsolate command. But that is extremely slow even with ScreenUpdating off.
A bit better was second approach: switch visibility off for all components and then in cycle make each visible, export assembly and switch the processed component visibility off (about 55% faster then first approach).
BUT even second approach on real project (>4000 occurrences with about 270 to be export) performs ~60 times slower (30 minutes !! instead of 30 seconds) than just export same components without assembly features (direct *.IPT -> *.IGES).
For some reason speed-difference on simple test assembly attached is not that dramatical (only about ~4 times):
1st approach ~90sec
2nd approach ~37sec
3rd (IPTs) ~9sec.
The code to perform any of the 3 approaches mentioned (set with answer on one or two consequent MsgBox-es) is also attached.
I'd like to know if there any way to perform the export asked more-or-less faster than the second approach?
PS:
Isn't it be strange that Inventor-programming forum don't accept uploading files with *.iLogicVB extension?
What is a supposed way to sound an idea to add forum functionality?
Please vote for Inventor-Idea Text Search within Option Names
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If exporting the file straight from an .ipt is fastest, have you considered opening each part?
If you use this code: Documents.Open( FullDocumentName As String, [OpenVisible] As Boolean ) As Document
And set OpenVisible to false I find that Inventor absolutely flies through multiple files. I would try not closing them until the very end though, might save a bit of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Export from IPT itself is not a solution as it don't keep Assembly Modify Features.
My current solution is to export from IPT unless Occurrence.HasBodyOverride = True (then export from IAM).
Now it takes time between 2 and 3 proportionally to qty of Assembly features (which are usually few).
Please vote for Inventor-Idea Text Search within Option Names