I'm a bit stuck, hoping someone can help me out. Has anyone worked out a way to get an assembly occurrence from an edge selection. For example, I have a Top Level Assembly (file that is open) that could contain any amount of sub assemblies which could also contain more sub assemblies / parts. I want to be able to select the edges of the parts and have it return the occurrence from the top level assembly. Is there any easy way of doing this?
I am able to get the selected part object easily, just not able to determine which occurrence it is in.
Any help would be great, thanks.
Matt.
Solved! Go to Solution.
Solved by rjay75. Go to Solution.
If you get an EdgeProxy when you select your edges the ContainingOccurrence property will be the ComponentOccurrence the edge is in. The OccurrencePath of the ComponentOccurrence will be an collection of components with the first one being the highest relative component.