I have realized, that there is a big difference between Rhino Python and IronPython when I select a sub-surface in Rhino 5. I do not need to use Shift in RhinoPython, while in IronPython I have to use Shift to select subobject. Is there an easy method to just select the face in IronPython without using Shift key?
In Rhino Python:
# Select target surface
obj_base = rs.GetObject(“Select target”, 24, True, False, None, True)
In IronPython:
# select a surface
gs = Rhino.Input.Custom.GetObject()
gs.SetCommandPrompt(“select surface”)
gs.GeometryFilter = Rhino.DocObjects.ObjectType.Surface
gs.DisablePreSelect()
gs.SubObjectSelect = True
gs.Get()
if gs.CommandResult() != Result.Success:
return gs.CommandResult()