Revit Add-in Error: Wrong Full Class Name

minusung_work
Observer

Revit Add-in Error: Wrong Full Class Name

minusung_work
Observer
Observer

Hello Revit community,

 

I am trying to develop an add-in and I'm getting a mysterious Wrong Full Class Name error. My class implements the IExternalCommand interface, and the add-in seemingly has the correct path to the dll. I have tried different locations as well, but I keep getting this error:

 

minusung_work_0-1706125090690.jpeg

 

Here is my class

using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace HelloWorld
{
    [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
    public class Class1 : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            TaskDialog.Show("Revit", "Hello World");
            return Autodesk.Revit.UI.Result.Succeeded;
        }
    }
}

 

Build output:

1>HelloWorld -> C:\Sample\Debug\net8.0\HelloWorld.dll
1>Done building project "HelloWorld.csproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 2:39 PM and took 00.489 seconds ==========

 

And the add-in file:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<RevitAddIns>
        <AddIn Type="Command">
                <Assembly>C:\Sample\Debug\net8.0\HelloWorld.dll</Assembly>
                <AddInId>239BD853-36E4-461f-9171-C5ACEDA4E721</AddInId>
                <FullClassName>HelloWorld.Class1</FullClassName>
                <Text>HelloWorld</Text> 
                <VendorId>NAME</VendorId>
                <VendorDescription>Your Company Information</VendorDescription> 
        </AddIn>
</RevitAddIns>

 

I can see my HelloWorld add-in under [Add-Ins > External Tools] but I get the Wrong Full Class Name error when I execute it.

 

Any help will be appreciated. Thanks.

0 Likes
Reply
481 Views
5 Replies
Replies (5)

jeremy_tammik
Autodesk
Autodesk

The files that you show in your query all look OK to me. Therefore, I suspect that there is something in your system that you are not showing, and may not be aware of. For instance, a duplicate DLL hanging around somewhere and confusing things. I suggest that you search your system globally for obsolete testing DLLs. Good luck!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

jeremy_tammik
Autodesk
Autodesk

What release of Revit are you working with? None of the released versions of the Revit API support .NET 8. So far, the highest suppoerted version is .NET 4.8. Please check the development requirements in the developer guide:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

ricaun
Advisor
Advisor

Probably@minusung_work is using the Revit 2025 reference which is NET 8.0. The last January Preview Release was updated from NET 7.0 to NET 8.0.

 

By the way, .NET Core Migration Webinar gonna happen soon.

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

minusung_work
Observer
Observer

Right on. I was using Revit 2024 and .NET Framework 8 which was indeed the issue. It is working with .NET 4.8. Thanks!

0 Likes

jeremy_tammik
Autodesk
Autodesk

... watch out! No such thing as Revit 2025 exists, and the preview release is under NDA. Please join the feedback forum in order to discuss all aspects of the preview release in a protected environment 🙂

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open