Thursday, November 15, 2012

Revit API Programming Templates 5

There are 2 more templates that I am going to talk about in this post. These templates are created based on your questions to help you to finish your projects.

1- The first template is about using Windows Form Application and retrieving data from Revit, then changing the data, and apply it to Revit project. When you run this template the form fills up with the current number of parameters inside Revit. This template has two separate classes. the first one uses a simple form to get  a door width and then shows it in the form. The user can see the current value and then he can change it inside the form. The second class does the same thin, but it shows you how to access energy settings of a Revit Project.

2- The second template shows how you can make an add-in ribbon panel inside Revit. In order to get familiar with the process you can visit Autodesk Revit API Wiki and learn the process. I have made some changes to this process to make it more manageable.
In order to run the template, you have to add addin file to your computers addin folder. Please read the Autodesk wiki mentioned above for details. Then when you open Revit, it asks you to select a dll file. Go to "add in dll file" inside the template provided, and select the dll file. Then it will asks you to select a logo for your panel. If you have a logo please find it and select it. Otherwise, it will use an online logo of Revit for your panel. Then you will have your customized revit button in the project.

Please let me know if you have any questions.

No comments:

Post a Comment