Getting all occurrences of a subassembly that is set to a Custom LOD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I want to get all occurrences of a subassembly and I've always used this method in a Top Level Assembly.
ComponentOccurrences.AllReferencedOccurrences( Object As Object )
In my case, the object is a Document
However, I have a problem when I have multiple instances/occurrences of the same subassembly in the Top Level Assembly and not all of them are set to the Master LOD. For instance, a Top Level Assembly has 4 subassembly occurrences (same subassembly file placed 4 times in the Top Level Assembly) . 2 of the instances are set to Master LOD (default LOD when the subassembly is placed) and 2 of them are set to a custom LOD named 'LOD1'. The method to get AllReferencedOccurrences will only get 2 instead of 4 since it only gets the ones that are set to Master LOD.
How can I get all occurrences regardless of the LOD they are set to? I need to count all subassembly occurrences and this method is pretty handy only when subassemblies are using Master LOD. Thanks!