Hi Johan,
This looks like a plugin/addin conflict.
Is this in a particular version of Revit/Rhino or both?