Revit Add-in Error: Wrong Full Class Name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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.