Message 1 of 2
HighlightSet in "in-place" part edit not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I open a part via ComponentOccurence.Edit() "in-place" within an assembly. The HighlightSet does not seem to work for this case.
Is something wrong with following code? It does not throw any error and the loops over the part features and faces work. However nothing is highlighted
HighlightSet highlightSet = InventorUtil.InventorApplication.ActiveEditDocument.CreateHighlightSet();
highlightSet.Color = InventorUtil.InventorApplication.TransientObjects.CreateColor(0, 255, 0);
PartDocument pd = (PartDocument)InventorUtil.InventorApplication.ActiveEditDocument;
foreach (PartFeature feat in pd.ComponentDefinition.Features)
foreach (Face face in feat.Faces)
highlightSet.AddItem(face);