msg="Pick a surface seam edge"
filter=Rhino.DocObjects.ObjectType.EdgeFilter
rc, objref = Rhino.Input.RhinoGet.GetOneObject(msg,False,filter)
Is there any way to further limit the choice to closed seam edges (like the seam on a cylinder or pipe) and avoid the multi-selection box that comes up?
I see ChooseOneQuestion (=False?) but I don’t know if that’s the way and how I should use it…
If a pick is ambiguous, then you will always see the “choose one object” dialog.
Also, by default, if a call to GetObject is permitted to select different parts of the same object, like a polysurface and an edge of that polysurface, then the top-most object is automatically selected. If you want the choose-one-object mechanism to include pop up in these cases, then call ChooseOneQuestion = true before calling GetObjects.
OK, thanks Dale, but then how does for example the DupEdge command manage to not have the popup come up when picking on joined surface edges like a box edge (or a seam edge for that matter)…? It is that type of functionality I am looking for.
Yes, it lets me pick the seam edge but it also lets me pick just about any other joined edge as well on a Brep object… I assume those are “manifold” edges as opposed to “seam” edges, it is not restricting the pick to seam edges… This seems like a bug (or a “limitation”) to me…
Added: oh, and using Rhino.DocObjects.ObjectType.Curve also allows me to pick curves, which I don’t want.