Novice Question | Failed to initialize the add-in

Novice Question | Failed to initialize the add-in

Anonymous
Not applicable
666 Views
1 Reply
Message 1 of 2

Novice Question | Failed to initialize the add-in

Anonymous
Not applicable

Failed to initialize addin getelementid because the classs IExternalCmds.GetElementId cannot be found in addin assembly. the full class name provides the entry point for Revit to call the add-in ,You must ensure this classimplements the autodesk.revit.UI.IExternalCommand interface

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

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous ,

1)In your code, make sure you implemented IExternalCommand interface.

for example Like this

 

    namespace Lab1PlaceGroup
    public class Class1 : IExternalCommand

     move your cursor over the IExternalCommand and select potential fixes and click Implement interface.

 

2)when you have done everything perfectly as per the above suggestion, then the problem may lie in your add-in file.

     In your Addin file full class name should be like this <FullClassName>Lab1PlaceGroup.Class1</FullClassName>

      (i.e)

        <FullClassName>namespaceName.ClassName</FullClassName>

 

I hope that the above suggestion helps.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes