Objects by Layer

Hi there
according to this reference the method ObjectsbyLayer has this super useful intType parameter where I would be able to filter out object types.
Is this a Rhino 6 addition? I can’t use this parameter in Rhino 5.
Also, any ideas how to filter out blocks from an array without looping or slowing down the script ?

Yes, that appears to be the case. And that additional argument has not yet been added to python rhinoscriptsyntax for V6 either.

Not really, unless you can restrict the initial selection using the GetObject/GetObjects object type filters to exclude block instances. Or, at the moment of operating on your collection of objects, have an if statement that excludes block instances:

if not Rhino.IsBlockInstance(obj) Then...

–Mitch

ok thank you very much.