2017 Add-In manager

2017 Add-In manager

Anonymous
Not applicable
8,928 Views
12 Replies
Message 1 of 13

2017 Add-In manager

Anonymous
Not applicable

I cannot get the Add-In manager that came with the 2017 SDK to load. It's like 2015 all over again. Anyone else?

0 Likes
8,929 Views
12 Replies
Replies (12)
Message 2 of 13

mikako_harada
Community Manager
Community Manager

Hi bthatcher,

 

I just tried with the one in the latest SDK posted on the public ADN site: 

 

http://www.autodesk.com/developrevit

 

It loads a SDK sample like HelloRevit. 

 

Could you try it again?

 

 

 


Mikako Harada
Developer Technical Services
0 Likes
Message 3 of 13

Anonymous
Not applicable

Thank you for your reply. I Uninstalled the 2017 SDK and re-installed it from the download in the link you provided. I set it up the same way I have it set up in Revit 2016, in which it works fine. The attached image shows ...

 

- the install location of the 2017 SDK (default)

- the location of the AddInManager.addin file (C:\ProgramData\Autodesk\Revit\Addins\2017)

- the updated [TARGETDIR] in that .addin file (C:\Revit 2017 SDK\Add-In Manager\AddInManager.dll)

- the Add-Ins ribbon in Revit 2017 (top)

- the Add-Ins ribbon in Revit 2016 (bottom)

 

I don't get the warning message while opening Revit about a new Add-In when first placing the .addin in the directory. Nor an error about not being able to load that add-in. This is the exact same behavior I experienced in Revit 2015. But it works in R2016.

 

I will try placing the .addin in the other add-in directory. Then a reinstall of Revit 2017. Please advise, thank you.

 

 

0 Likes
Message 4 of 13

jaboone
Advocate
Advocate

I installed the 2017 SDK but can anyone tell me how I can get to the files it installed but more specifically the add-in manager.  How do I run it?

 

I created a *.addin in this folder and changed the xml data to my program specifics, but revit is not automatically loading my dll in the add-ins menu.

C:\ProgramData\Autodesk\Revit\Addins\2017

 

Learning as I go
0 Likes
Message 5 of 13

jaboone
Advocate
Advocate

I created the dll through the macro manager built into revit, if that makes any difference.  I just want to use it on other models.

Learning as I go
0 Likes
Message 6 of 13

RPTHOMAS108
Mentor
Mentor

I don't use addin manager but I believe it works only with dll files created via the API not macros.

 

I think there is a procedure for transferring/updating macros.

 

http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-6BC79239-1447-438B-8BD1-E5DC683B7CF8

0 Likes
Message 7 of 13

jaboone
Advocate
Advocate

Thank you RPTHOMAS108 but not exactly what I was looking for putting the dll in revit menu.  That manager works works well from what I remember as I hadn't used it in many years.  I think I got a program from samples someone else had written and tried playing around with it at that time.  Obviously not as simple as changing the *.addin file with my dll, or maybe I am doing something wrong.

Learning as I go
0 Likes
Message 8 of 13

RPTHOMAS108
Mentor
Mentor

Perhaps find location by doing a search for the filename "AddInManagerHelpENU.chm" or part of it.

 

You have to update the paths as noted above (remove '[TARGETDIR]' from within the .addin file and place all files either in:

 

C:\ProgramData\Autodesk\Revit\Addins\2017

or

C:\Users\<username>\AppData\Roaming\Autodesk\Revit\Addins\2017

 

I've marked red things that may perhaps vary depending on system

 

Message 9 of 13

jaboone
Advocate
Advocate

Found it.  Thanks RPTHOMAS108

Knowing one file did it.

it installed off the root

C:\Revit 2017-1 SDK\Add-In Manager

 

 

I had to change a tag in the addin, but was able to copy it to the addins folder.2018-02-26_14-25-47.jpg

Learning as I go
0 Likes
Message 10 of 13

Anonymous
Not applicable

Hello bthatcher, 

 

Your .addin file should be placed in the appropriate year under C:\ProgramData\Autodesk\Revit\Addins.  When it's in this location, your addin should load when that version of Revit starts, at which point you get prompted whether or not to use the addin, and so forth.

 

Your edited .addin file should look something like this:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<RevitAddIns>  
	<AddIn Type="Application">    
		<Name>FabProRVT</Name>    
		<Assembly>MyAddinName\MyAddinName.dll</Assembly>
    <ClientId>626c1b2d-ed09-4f63-a43b-4386e4cf2f0a</ClientId>
		<FullClassName>MyAddinNamespace.MyAddinClass</FullClassName>    
		<Text>MyAddinName</Text>    
		<VendorId>MADN</VendorId>    
		<VendorDescription>CompanyName, www.company.com</VendorDescription>
    <VisibilityMode>AlwaysVisible</VisibilityMode>
	</AddIn>
</RevitAddIns>

I use this for Revit 2016-2018.  Hope this helps.  Let me know if you need anything else!

 

 

Don't forget to mark your answers...  It helps the next individual find theirs faster!!

Cheers, 

 

Geoff Overfield

Software Engineer

FabPro, LLC

FabPro1_Logo_Dark.png

 

0 Likes
Message 11 of 13

jaboone
Advocate
Advocate

Thanks Geoff.  

Does the ribbon icon come from assigning it to the dll?  And does naming it an "Application" make the icon reside on the ribbon?  Would the "application" have to be placed differently in the Execute procedure?  Is there a sub directory that has to be created and if so how does the addin file have to be named any differently?

 

The templates from Jeremy say to place in VS and use it as a basis to get started, but I was told to start placing a function in the Execute procedure.

http://thebuildingcoder.typepad.com/blog/2014/05/add-in-wizards-for-revit-2015.html

 

Learning as I go
0 Likes
Message 12 of 13

Anonymous
Not applicable

Jaboone,

 

Depending on what your goal is, there are different ways to go about creating your addin.  I, personally, am building a full-scale addin for Revit, so rather than placing a button in their ribbon somewhere, I create my own ribbon tab.  If you're just looking to create one tool, and have it be located in under the External Tools stacked button, you can find more about that here

 

From my experience, the icon is a property of the button that you set when you create the button.  I don't know how you're doing it, but if you're using the Autodesk.Revit.UI.RibbonPanel.AddItem(...) function that I use, it returns a PushButton instance that has a LargeImage property - assign a BitmapSource to it like so:

 

//Place an icon image (32x32) in your resources, and copy it to the Properties::Resources
IntPtr pIcon = Properties.Resources.MyButtonIcon.GetHBitmap();
BitmapSource pIconBmp = Imaging.CreateBitmapSourceFromHBitmap(pIcon, IntPtr.Zero, System.Windows.Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
pBtn.LargeImage = pIconBmp;

If you're looking at putting together a more elaborate addin that would require your own ribbon panel, like the image below, I can put together something to help with that.  Let me know.

 

Untitled.png

 

 

Don't forget to mark your answers...  It helps the next individual find theirs faster!!

Cheers, 

 

Geoff Overfield

Software Engineer

FabPro, LLC

FabPro1_Logo_Dark.png

Message 13 of 13

AlbertoRosario
Explorer
Explorer

I had the exact same issue,...

+ saved the AddInManager.dll & Autodesk.AddInManager.addin files to "C:\ProgramData\Autodesk\Revit\Addins\20##" filepath

+ updated "<Assembly>[TARGETDIR]AddInManager.dll</Assembly>" to "<Assembly>AddInManager.dll</Assembly>"

 

all my other addins, such as NavisExporter, would load except the Add-In Manager,...

 

finally figured out what was interfering/blocking the 'AddInManager' addin,... there was a folder named "Add-In Manager" in the "Addins" folder at the filepath of where the "Revit.exe" is saved.

So, I moved the "Add-In Manager" folder out of "C:\Program Files\Autodesk\Revit [Version]\AddIns" to an "Archive" folder in my "Documents" and that allowed the Add-In Manager to run properly in my case.

RevitExeAddinsFolderExampleContents.png

 

RevitExePropertiesOpenFileLocation.png

 

A quick way to reach the folder containing the "Revit.exe" file is by right-clicking the Revit shortcut, open the properties, and click on the "Open File Location" button.

 

0 Likes