Exception from rs.IsLayer('Default')


#1

If layer Default does not exist,
“Message: Could not find Layer with ID 00000000-0000-0000-0000-000000000000” is thrown for rs.IsLayer(…) such as when using this script (from Rhino IronPython Help):

import rhinoscriptsyntax as rs

layer = rs.GetString("Layer name")

if rs.IsLayer(layer):
    print "The layer exists."
else:
    print "The layer does not exist."

This does not occur in V5. I also haven’t found other layer names that do this in V6.

Thank you,
Steve


(Steve Baer) #2

@piac can you tell if this is a result of the recent model component changes we made?


(Giulio Piacentino) #3

EDIT: nevermind, I made a mistake while testing this. I can reproduce it.


(Giulio Piacentino) #4

You can track this bug here: RH-36079. The fix should be in next week’s WIP.


(Brian Gillespie) #5

This is fixed in Rhino WIP 6.0.16306.09301, just released.