BIM 360 Links Not Found - Fix

BIM 360 Links Not Found - Fix

ricaun
Advisor Advisor
1,588 Views
3 Replies
Message 1 of 4

BIM 360 Links Not Found - Fix

ricaun
Advisor
Advisor

A user reports to me that some of my plugins were messing with BIM360 links, after testing a lot of things I found out what is causing the problem.

 

It's a known problem here in the forum and what's causing the issue is referencing a bigger version of the Newtonsoft.Json package.

 

In Revit 2021 the default version of 'Newtonsoft.Json' is 11 and when an application/plugin requests to load 'Newtonsoft.Json' version 13 and are not found in the plugins folder some strange happens.

 

Instead of ignoring and using the already loaded 'Newtonsoft.Json' version 11, for some reason, Revit loads a 'Newtonsoft.Json' file in the Autodesk Addin 'PnIDModeler' and is a version 11.

 

And if you have two 'Newtonsoft.Json' with the same version loaded in Revit, when BIM360 tries to initialize (usually happens when you open a Revit file that requires BIM360) gonna thrown an exception on the Jornal and BIM360 service fail. Without the service, Revit can't load BIM360 links.

 

Showing this message:

ricaun_1-1664969635410.png

 

A quick fix would be removing or changing the name of the 'Newtonsoft.Json.dll' file in the Autodesk Addin 'PnIDModeler'.

Or if you are a developer using an old version like version 9 should work, Revit gonna load the default version instead. But if you need to use a specific version of the 'Newtonsoft.Json' be aware that could cause some issues in Revit.

 

Here is a video about the problem and how to 'fix'.

 

References related:

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

1,589 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Brilliant! Thank you for sharing! Added it to the blog:

  

https://thebuildingcoder.typepad.com/blog/2022/10/bim360-links-and-programming-add-ins.html#3

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

Omar_Amen
Advocate
Advocate

Luiz, this is extremely helpful and brilliant
Thank you. 

Message 4 of 4

aladinhamdi1
Community Visitor
Community Visitor

Hello everyone ,this my first time here and i hope you help me , i have the same problem to reload the links , when i reload from i  the folder bim 360 is empty . 

i tried with to follow the same steps but nothing . 

thank you in advance .

 

 

0 Likes