- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an issue where an assembly (A) contains two sub assemblies (B and C). Sub Assembly B contains 4 parts. Sub Assembly C contains a "reference" to Sub Assembly B for constraint purposes and one other part.
As I traverse the assembly tree, I end up counting the parts in Sub Assembly B twice. How can I tell if a component (B) in the assembly (C) is just a reference and not an actual instance of the component?
The BOM shows the correct counts, (5 parts total) so there is something somewhere that tells it that it is a reference only component.
I use the following function to get the files in the assemblies.
CComQIPtr<DocumentsEnumerator> docsenum;
HRESULT Result = assemblydoc->get_ReferencedFiles(&docsenum);
Solved! Go to Solution.