Addin Manifest FullClassName Rules

Addin Manifest FullClassName Rules

Anonymous
Not applicable
610 Views
1 Reply
Message 1 of 2

Addin Manifest FullClassName Rules

Anonymous
Not applicable

Hello,

Can someone point me to specific instrustions on what is required as the "FullClassName" in the addin manifest?  I am getting errors when I run my external command saying that the full class name does not exist.  Looking at some examples, I see that sometimes is seems to be "namespace.classname", other times it seems to be the .cs file name, and others it is just one name.  I think I have also seen full file paths.  Are there specific situations where Revit is looking for different things?  Thank you for any help.

0 Likes
Accepted solutions (1)
611 Views
1 Reply
Reply (1)
Message 2 of 2

arnostlobel
Alumni
Alumni
Accepted solution
Revit looks for a fully qualified name of a class that implements the IExternalCommand interface. A fully qualified name consists of the class name plus a chain of namespaces if the user has the class in a namespace hierarchy. By default Visual Studio puts a new class in the default namespace. That is why the pattern NAMESPACE.CLASSNAME is the most common. However, there are other possibilities; it may be the class is not put in any namespace at all, or, on the other hand, it is deep inside in many nested namespaces.

Arno?t L?bel
Autodesk, Revit R&D
Arnošt Löbel
0 Likes