Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Novice Question | Failed to initialize the add-in

Anonymous

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
Reply
Accepted solutions (1)
528 Views
1 Reply
Reply (1)

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