Implementing IUpdater

Implementing IUpdater

elina.hyvamaki
Advocate Advocate
527 Views
2 Replies
Message 1 of 3

Implementing IUpdater

elina.hyvamaki
Advocate
Advocate

I'm new to Revit API, and I'm trying to learn it through examples. For some reason I can't get this code example to work: https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/Revit-API/files/GUID-...
I added using directories and transaction mode, build the solution, and created an addin manifest file for application (to the addins folder) according to these instructions: https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/Revit-API/files/GUID-...

 

There is no error message, I just don't see the addin anywhere in Revit. I must be missing something...

0 Likes
Accepted solutions (1)
528 Views
2 Replies
Replies (2)
Message 2 of 3

Revitalizer
Advisor
Advisor
Accepted solution

Hi,

 

nobody will be able to help you by giving such little information.

 

As you can see in the code, there is no button created in the OnStartup method, so of course you will see no difference in the GUI.

It may be that the addin is loaded in a proper way, so no warning or error message will be displayed at all.

 

If you look at te IUpdater's Execute method, you see that it changes the WallType of newly created Walls to a given one, "Exterior - Brick on CMU".

But only if this one is existing - so the IUpdater will only do something if your project file has a WallType of that name.

 

If that does not help, it would be a starting point to post the content of your *.addin file...

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 3 of 3

elina.hyvamaki
Advocate
Advocate

I created that Wall Type, and the addin works. Thank you Revitalizer!

 

Elina

0 Likes