SubD Filter for RS.GetObject

Hi Guys,

Does anyone know if there is a filter number for SubD for RS.GetObject, these are the current ones listed:

Value Hex Description
0 &h0 All objects (default)
1 &h1 Point
2 &h2 Point cloud
4 &h4 Curve
8 &h8 Surface (single-face Brep or Extrusion)
16 &h10 Polysurface (multiple-face Brep or Extrusion)
32 &h20 Mesh
256 &h100 Light
512 &h200 Annotation
4096 &h1000 Instance (Block) reference
8192 &h2000 Text dot
16384 &h4000 Grip
32768 &h8000 Detail
65536 &h10000 Hatch
131072 &h20000 Morph control
134217728 &h8000000 Cage
268435456 &h10000000 Phantom
536870912 &h20000000 Clipping plane
1073741824 &h40000000 Extrusion

Cheers

DK

Try 262144…

yes.

See RhinoCommon Documentation
https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.objecttype

As object types are bitmasks / binary masks / flags - also check if theses numbers a
2^x
Power(2,x)
2^18 in this case

262 144 = (hex) 0x40000 = (bin) 0b1000000000000000000

1 Like

Thanks guys - just what I needed!

Cheers

DK