I select object in SE assembly by creating command using Application.CreateCommand method. I using mouse settings:
Command.Mouse.WindowTypes = 1; //only graphic window
Command.Mouse.EnabledDrag = false;
Command.Mouse.EnabledMove = true;
Command.Mouse.InterDocumentLocate = true;
Command.Mouse.LocateMode = (int)SolidEdgeConstants.seLocateModes.seLocateQuickPick;
Command.Mouse.ClearLocateFilter();
Command.Mouse.AddToLocateFilter((int)SolidEdgeConstants.seLocateFilterConstants.seLocatePart); //occurrence and suboccurrence objects, if i undestand it well
How to detect selected object type?
When i stop mouse moving above subassembly and wait, until appears icon QuickPick, then i click rigt mouse button and i select suboccurrence from list, this selected object is not occurrence nor suboccurrence.
How to detect type of selected object, and how to select suboccurrence in SE assembly? How to select subassembly occurrence ?
Thanks. |