Scripting sub-object selection in Python

Me too, thanks… I actually remember how to do it now - the following does restrict selection to just subsurfaces:

import Rhino

def GetOnlyBrepFace():
    msg="Select a surface or Brep face to offset"
    go = Rhino.Input.Custom.GetObject()
    go.SetCommandPrompt(msg)
    go.GeometryFilter = Rhino.DocObjects.ObjectType.Surface
    go.GeometryAttributeFilter=Rhino.Input.Custom.GeometryAttributeFilter.SubSurface
    go.SubObjectSelect = True
    go.AcceptNothing(False)
    
    if go.Get()!=Rhino.Input.GetResult.Object: return
    objref = go.Object(0)
    #etc