Not helpful errors

image

Wow, thanks Dynamo! Super useful!

You’re mixing calls to both Dynamo RevitNodes API and the Revit API. Both contain a SketchPlane class so the interpreter has an ambiguous reference. Theres no reason to be using RevitNodes API when you can use the Revit API, but if you do need to use it, you need to qualify rhe class.

4 Likes

It was my usual mistake (I forgot to unwrap). :face_with_symbols_over_mouth:

But still, a very unhelpful (although slightly amusing) message.

If that error message included the namespaces it would be more useful to more people. Cc @solamour

2 Likes

Thanks Thomas - 100% agree this is confusing and should be improved. CC @Aparajit_Pratap

@Michael_Kirschner2 shed some light on this; the error in question comes directly from IronPython rather than a Dynamo implementation, so the options to resolve are:

  • Send a patch to IronPython
  • Ask the maintainers to investigate it

Either way it’s not fully in our control - but we can log a task to investigate it :slight_smile:

I think it’s from IronPython!

1 Like

Does that mean it’ll be OK in Revit 23 onwards?