When a user selects a subobject, the SelectObject event fires for the object but I don’t see information for which subobject was actually selected.
How does a plugin determine this?
Example:
Create a rectangle, Curve->Rectangle, Corner to Corner.
Shift-Ctrl-leftclick one edge (say, the top one).
The SelectObject event fires for the entire polyline. How do you tell that a subobject was the actual selection and which one?
I don’t see anything else that looks relevant for events at the same level (Rhino Doc events where the SelectObject one is in the API docs). I also searched for ‘subobject’ in the C# developer examples.
I started this question out looking at 3D objects and simplified to the rectangle for this question.
This is a raw/incomplete implementation via c# script in gh.
It cheks 1. if the selected object is of type Brep, and 2. if it’s a sub-object of type BrepFace, and it adds the face geometry to a variable “geo” to output…
Different cases are not covered.
Note I managed to make it work by using try-catch trick…