I can't find a way to programmatically select solid3d subentities (faces or edges). Editor method SetImpliedSelection requires an array of ObjectId (unsuitable for subentities).
public void SetImpliedSelection(ObjectId[] selectedObjects);
Arx provides the acedSSSubentAdd function. I could probably PInvoke that function but, since I have several CAD versions to target, a natively managed method would be the best option.
None of the Editor Select* methods seems to accept a SubentityId or FullSubentityPath.
A possible (awful) workaround is to subscribe the Editor SelectionAdded event. The SelectionAddedEventArgs provides a promising AddSubEntity(SelectedSubObject) method, but no way to make it working. Here is the code I used.
var subEntPath = new FullSubentityPath(new[] { entId }, subentId);
var sso = new SelectedSubObject(subEntPath, SelectionMethod.NonGraphical, IntPtr.Zero);
Any suggestions would be appreciated.
Daniele