Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way to get the 'Representations' to load on an occurrence that is loaded using the API?
I insert the occurrence like this:
componentOccurrence = assemblyDocument.ComponentDefinition.Occurrences.AddWithOptions(
inventorFilePath,
matrix,
options);
if (string.IsNullOrWhiteSpace(viewRepresentationName) is false)
componentOccurrence.SetDesignViewRepresentation(viewRepresentationName);
In the image below, the top assembly was inserted with the API & the second assembly was inserted manually via the Inventor user interface. As you can see, the 'Representations' are not loaded for the first assembly even though they are the same file.
If this answered your question, click 'Accept Solution'.
If this was helpful, click 'Like'.
Tyler Warner
Solved! Go to Solution.