Revit Secondary Development Foundation-add external tool options to the additional module, and revit Secondary Development
Those who want to participate in secondary development with Revit may have such a situation. When we open our revit (version 2014 or later), click Add module, an external tool is missing !!! Is Autodesk hiding it for you!
Next, I will show you how to add the external tool button under the additional module.
I am using Revit2016, so the following is a demonstration of this version.
First, we need to download a 2016 SDK on the official Autodesk Website ,:
Additional Website: http://usa.autodesk.com/adsk/servlet/index? Id = 2484975 & siteID = 123112
After downloading the SDK, install it. The installation directory is free of charge. You must be able to solve this problem. I have installed it on drive F and open the first folder in the Revit 2016 SDK folder, that is, the Add-In Manager folder,
Copy the four highlighted files in, and find the Revit directory in Users under drive C. Emphasize that you need to open a hidden project to find the files. Different user paths may vary, my path is under C: \ Users \ Lenovo \ AppData \ Roaming \ Autodesk \ Revit \ Addins \ 2016.
Open the file and paste the four copied files,
Next, use NotePad to open the last two files with long names, Autodesk. AddInManager. addin, Autodesk. AddInManager-Automatic, and addin.
Copy the path of the current folder. my options are C: \ Users \ Lenovo \ AppData \ Roaming \ Autodesk \ Revit \ Addins \ 2016, then replace all the [TARGETDIR] of the two files with the path. The two files are located everywhere and the final result is as follows:
Close after saving, open Revit2016, and click on the additional module. You will be pleasantly surprised to find an additional external tool button!
Then let's run a Hello World!
Finally, this external tool has been completed!
I have also referenced a lot of articles and books. If there are any errors, I hope I can correct them!