Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

Please make failing method raise an exception instead of popping up an error Window!

$
0
0

Could RhinoCommon please throw an exception instead of popping up this dialog?

image

when running this bad code:

    import rhinoscriptsyntax as rs
    if not rs.IsLayer("A"):rs.AddLayer("A")
    if not rs.IsLayer("B"):rs.AddLayer("B")


    import scriptcontext as sc
    i = sc.doc.Layers.FindByFullPath("A",True)
    sc.doc.Layers[i].Name = "B" # This fails and pops up a UI Error Window

this issue seems to be related:
https://mcneel.myjetbrains.com/youtrack/issue/RH-48321

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles