Plugin for Revit 2025 could not load the latest Autodesk.Forge package

Plugin for Revit 2025 could not load the latest Autodesk.Forge package

ptranU2KHX
Advocate Advocate
1,347 Views
11 Replies
Message 1 of 12

Plugin for Revit 2025 could not load the latest Autodesk.Forge package

ptranU2KHX
Advocate
Advocate

Hi All

 

Thank you for reading my post. 

 

I recently upgrade my plugin from net framework to net core to support Revit 2025. However, I experience the issue where Revit could not load the Autodesk.Forge v.1.9.9. The error message is in the illustration below. If I downgrade the version of Autodesk.Forge to v1.9.3, which matches with the one in Revit 2025, it does not show the error but I am not sure if there are any malfunction possibilities since I do not test thoroughly. 

ptranU2KHX_0-1724394115360.png

 

My current plugin with net framework works fine with Autodesk.Forge v1.9.9 for Revit 2023 and Revit 2024. Since my plugin targets multi version of Revit, I am trying to use the same version of Autodesk.Forge for all versions.

 

Please help.

0 Likes
Accepted solutions (1)
1,348 Views
11 Replies
Replies (11)
Message 2 of 12

jeremy_tammik
Alumni
Alumni

I do not know what this Autodesk.Forge package that you mention might be. What does it do, and who created it? You ought to contact them for help and support. At first glance, I rather doubt that it has anything to do with Autodesk, in spite of the (intentionally?) confusing name.

  

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

ptranU2KHX
Advocate
Advocate

Hi @jeremy_tammik ,

 

Somehow Revit 2025 does have Autodesk.Forge.dll embedded. It is found as Autodesk\Revit 2025\AddIns\Lightbox\Autodesk.Forge.dll.

 

So I think it belongs to Autodesk, doesn't it? Here is the github page of it: https://github.com/Autodesk-Forge/forge-api-dotnet-client

0 Likes
Message 4 of 12

jeremy_tammik
Alumni
Alumni

Aha. Yes, indeed, that is a sample application provided two years ago by Autodesk to work with APS (formerly Forge). Please read the notes in the GitHub repository that you point out:

  

> This repository has been deprecated. For the new APS SDK for .NET please refer to
https://github.com/autodesk-platform-services/aps-sdk-net.

   

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

ricaun
Advisor
Advisor

I have a issue with 'Autodesk.Forge' recently with version 1.9.8, I believe uses the authentication v1 that is obsolete. Update to version 1.9.9 fix the issue.

 

In the end is better to migrate to the new aps-sdk-net, or create your own implementation to run inside Revit with only the features and dependencies you need.

 

What kinda of thinks you are using inside Revit with APS/Forge?

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

Message 6 of 12

ptranU2KHX
Advocate
Advocate

Thanks @jeremy_tammik. It makes sense to me now


@jeremy_tammik wrote:

Aha. Yes, indeed, that is a sample application provided two years ago by Autodesk to work with APS (formerly Forge). Please read the notes in the GitHub repository that you point out:

  

> This repository has been deprecated. For the new APS SDK for .NET please refer to
https://github.com/autodesk-platform-services/aps-sdk-net.

   


 

0 Likes
Message 7 of 12

ptranU2KHX
Advocate
Advocate

Thanks @ricaun . Currently, I currently use Autodesk.Forge package for converting the response from APS to their model types, such as hub, project, folder.

0 Likes
Message 8 of 12

cwangCJ7J2
Explorer
Explorer

Hey @ptranU2KHX, I got exactly the same issue as you posted. Do you have a solution? Thanks!

0 Likes
Message 9 of 12

ptranU2KHX
Advocate
Advocate
Accepted solution

Hey @cwangCJ7J2 , just simply roll back to v1.9.3. It works for Revit 2025.

Message 10 of 12

cwangCJ7J2
Explorer
Explorer

It works! Thank you! I was trying to debug it, but I found that Autodesk has archived the repository. I'm thinking of starting a new .NET client repo since we are working on building many Revit tools with APS connection internally.

Message 11 of 12

ptranU2KHX
Advocate
Advocate

Glad it helps!

 

Autodesk has introduced new SDK for APS. You might want to start to look at it before starting a new one.

Message 12 of 12

mari.shimode
Community Manager
Community Manager

Hi @ptranU2KHX, thank you for sharing the solution! I have marked it as an accepted solution so people who have the same question can find it easily in the fuutre.

 

@cwangCJ7J2, thank you for validating. I'm glad to hear your issue has been resolved.



Mari Shimode
Community Manager
0 Likes