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?


Here you can find SubD class documentation in Rhinocommon WIP:

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() (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.