Rs.filter for subD object

Hi everyone,

For rhinoscriptsyntax/Rhinocommon, is there an updated documentation I can refer to when dealing with subD object? I am current using rs.Command() as a makeshift for my scripts, but it is not very scripting friendly. I want to make my script as backwards compatible as possible. Any suggestions?

Best,
Vincent

Here you can find SubD class documentation in Rhinocommon WIP:
https://developer.rhino3d.com/wip/api/RhinoCommon/html/T_Rhino_Geometry_SubD.htm

Here is a simple example to get a subD object:

from Rhino import DocObjects, Input
objRef = Input.RhinoGet.GetOneObject("Pick a subD", False, DocObjects.ObjectType.SubD)[1]
print objRef.SubD()

getSubD.py (147 Bytes)

Great! Thank you @Mahdiyar

Based on my experimentation, for rhinoscriptsyntax, it does not accept Rhino.DocObjects.ObjectType.SubD(= 262144). If I set the filter to Rhino.DocObjects.ObjectType.Brep(=16), it will take the subD object.

Hope this is helpful for anyone has the same question.