DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
328 stars 184 forks source link

Dynamo 2.0 conflict with NBS Plugin #2019

Open des-hourihane opened 6 years ago

des-hourihane commented 6 years ago

Dynamo version

Dynamo Revit 2.0.0.4655 (Dynamo Core 2.0.0.4654)

Revit version

Revit 2017.2 17.0.1150.0 20171027_0315(x64) 2017.2.3 (Problem seems to be common to 2018.2 also)

Operating system

Edition Windows 10 Pro Version 1709 OS Build 16299.374

What did you do?

Opened Dynamo 2.0, Started a new Graph (or Custom Node - tested this also).

What did you expect to see?

Workspace with Library to left hand side, populated with new headings - Math, Revit, etc.

What did you see instead?

Workspace with 'blank' Library space. There were 5 Notifications - all System.IO.FileLoadException and each identifying a different CefSharp component:

While loading assembly CefSharp.Wpf, Version=57.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, Dynamo detected that the dependency CefSharp.Core, Version=57.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138 was already loaded with an incompatiable version. It is likely that another Revit Addin has loaded this assembly, please try uninstalling other Addins, and starting Dynamo again. Dynamo may be unstable in this state. It is likely one of the following assemblies loaded the incompatible version: RevitPlugin, BusinessLogic, BusinessLogic, BusinessLogic, CefSharp.Core, Revit2017, Revit2017, CefSharp.WinForms, CefSharp.WinForms

nbs plugin conflict

CefSharp and BusinessLogic come with the NBS plugin (a UK specification tool). Uninstalling that plugin does resolve the issue but it’s not something I can do - it’s required for use on live projects.

The problem is not present when running in Sandbox mode.

ksobon commented 6 years ago

Let me ask you a question: when you work in Revit, does the NBS plugin work just fine? If the answer is yes, then it's not related to Dynamo. Dynamo only exposed a pre-existing issue that NBS plug-in and Revit had. Dynamo is a plug-in for Revit just like the NBS tool. Unlike the NBS tool, it has a tool in there that tracks conflicts between 3rd party libraries and notifies you if such exists. That's what it's doing. Since Dynamo also uses a CefSharp library, that makes 3 tools that attempt to load it by default: Revit, Dynamo, NBS. Please verify that NBS's version is the same as Revit's and if it's not then perhaps it would be best to notify them. We talked about this at the Dynamo Forum and I said that Autodesk should do something about it, but it's unlikely they will, so you are best served to work with ABS to get this resolved.