Highlight extrusion of a part embedded in assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear all,
I have an assembly with a part "Panel" consisting of several extrusions. Using the "ComponentOccurence.Edit()" function of the API, I am able to open the Part "Panel" embedded within the assembly document and select one of the extrusions by clicking on it - it is a hole. This extrusion gets highlighted by thick blue lines - see below:
Instead of clicking on the extrusion with the mouse, I want to select it via the API. I already have access to the "ExtrudeFeature" object. However, adding it to the SelectSet of the active document fails (Exception: wrong parameter), which is reasonable if the active document is the assembly - hence it is not possible to select ExtrudeFeatures of a part in an assembly.
Adding the ExtrudeFeature to the SelectSet of the "Panel" Part document does not lead to an excpetion, however the node does not get selected as shown above - also understandable since the assembly document is visible and not the part document.
Is it possible to select an ExtrudeFeature in "embedded part-assembly" mode via the API? If so, how? (Again, with the mouse it works)
Alternatively, I am just looking for some way to highlight a single extrusion feature of a part within an assembly. I managed to change its color, but this is not visible if I look onto the extrusion from the top.
HighlightSet has same issues as described for the SelectSet.
Thanks and best
Jan