Developed .NET Addin not appearing in Revit 2014

Developed .NET Addin not appearing in Revit 2014

Anonymous
Not applicable
761 Views
4 Replies
Message 1 of 5

Developed .NET Addin not appearing in Revit 2014

Anonymous
Not applicable

Hello,

 

*This post was originally posted on the wrong forum*

 

I am attempting to start developing addins for Revit 2014 but I can't seem to get past the basics; my addin isn't appearing and no error messages are being displayed, etc.

 

I am following this tutorial here: http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=16849339

 

But the addin isn't appearing.

 

I have the addin file located in the %AppData%\Roaming\Autodesk\Revit\Addins\2014folder with the following contents:

 

<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
  <AddIn Type="Command">        <Assembly>      C:\Users\[[My Account]]\Documents\Visual Studio 2013\Projects\Lab1PlaceGroup\Lab1PlaceGroup\bin\Release\Lab1PlaceGroup.dll    </Assembly>
    <ClientId>502fe383-2648-4e98-adf8-5e6047f9dc34</ClientId>
    <FullClassName>Lab1PlaceGroup</FullClassName>
    <Text>Lab1PlaceGroup</Text>
    <VendorId>ADSK</VendorId>
    <VisibilityMode>AlwaysVisible</VisibilityMode>
  </AddIn>
</RevitAddIns>

What else do I need to do to get an addin to display?

 

Is there also a way to enable debugging or output of errors to a file so that I can see if the addin failed to load for some reason?

 

Thank you.

0 Likes
Accepted solutions (1)
762 Views
4 Replies
Replies (4)
Message 2 of 5

ollikat
Collaborator
Collaborator
Hi

<FullClassName>Lab1PlaceGroup</FullClassName>

Are you sure your class isn't under any name space? If it does, those namspaces must precede the name of the class....ie.

<FullClassName>myNameSpace1.myNameSpace2.Lab1PlaceGroup</FullClassName>
0 Likes
Message 3 of 5

Anonymous
Not applicable

There was no namespace.

 

Other plugins load so I know that isn't an issue. I have my plugin in the same directory as the others as mentioned before in the %AppData%\Roaming\Autodesk\Revit\Addins\2014 folder.

 

Is there a way to activate debugging of some kind to see what reason why a plugin doesn't load?

 

Any way so I can pinpoint the exact issue?

 

I am losing my mind here.

 

Thank you for your time.

0 Likes
Message 4 of 5

arnostlobel
Alumni
Alumni
Accepted solution

Hello ckoeber:

 

Unfortunately, there is no way to debug Revit (from the outside, that is) to find out why a particular add-in does not get loaded. You sort of must apply brute-force to figure it out. Sorry 😞 It happens to anyone, occasionally, by the way. I’ve created tons of addins and sometimes I made a mistake that causes them not being loaded. It tends to be something trivial, but I understand when it drives one nuts (as it does for me 🙂

 

First, try to look for information in the journal file Revit creates. Launch Revit and  close it (assuming your command does not show up). There may be some warnings in the journal file possibly explaining the reason. (It depends on the reason, so not always is an info there). I recommend doing this with just that one single addin registered. (So temporarily remove all other *.addin files).

 

If that does not yield any useful information, follow with brute force. You wrote that other commands work fine. All right, what is different then? Take one addin that works, comment out all of its code (temporarily, of course) and replace it with the code from the command that gives you trouble with loading. Would that work or would it not? If it does, problem is in the addin file. If it does not work, problem is with the code. Maybe you are referring a method somewhere in a referenced DLL that for some reason cannot be loaded.  If that is suspected, then start commenting out your command’s code and removing [now] unnecessary references. Assuming all paths and class names are correct, at some point you should reach state when your command is loadable.

 

By the way: You should not use “ADSK” as your Vendor Id unless you work for us 🙂

 

(And since you seem to have copy-and-pasted the Vendor Id from another addin, you did not copy the ClientId as well , did you?)

 

Arnošt Löbel

Sr. Principal Engineer

Autodesk, Revit R&D

Arnošt Löbel
0 Likes
Message 5 of 5

Anonymous
Not applicable

Thank you for taking the time to reply; it seems to be my code somewhere as I did what you suggested with an original addin that did work and my code popped up.

 

Thank you for the information though; it looks like with Revit I have to take it slow.

0 Likes