I want to create an Add-in using the Revit API, can you help me?

I want to create an Add-in using the Revit API, can you help me?

qkrdlsrjs00YGZS9
Explorer Explorer
851 Views
1 Reply
Message 1 of 2

I want to create an Add-in using the Revit API, can you help me?

qkrdlsrjs00YGZS9
Explorer
Explorer

Hi. 

First, when the button located on the Ribbon is clicked, a UI should appear. Then, I want to make it so that when another button is clicked in the UI, a function I wrote is executed. I still lack understanding, so I appreciate it if you can explain it comprehensively.

  1. What should the UI be created with? WPF?
  2. Is it possible for the Add-in to read and handle an external text file?
  3. Where should the source code for the button's execution be written?
0 Likes
Accepted solutions (1)
852 Views
1 Reply
Reply (1)
Message 2 of 2

Mohamed_Arshad
Advisor
Advisor
Accepted solution

HI @qkrdlsrjs00YGZS9 

  

      Before going to the Task Directly, Kindly go through the Revit API Developer Guide and Jeremy's Blog and My First Revit Plugin. I will provide the links for your tasks. Kindly go through it and build your plugin.

 

1. Create Button in Revit Ribbon 

 https://help.autodesk.com/view/RVT/2024/ESP/?guid=Revit_API_Revit_API_Developers_Guide_Introduction_... 

 

https://archi-lab.net/create-your-own-tab-and-buttons-in-revit/

 

2. Create WPF UI and Button Events

https://jeremytammik.github.io/tbc/a/1816_wpf_addin_template.html 

https://twentytwo.space/2019/08/06/revit-add-ins-with-wpf/comment-page-1/ 

 

3. Read External Text File

https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/csharp/language-compilers/read...

 

Hope this will Helps 🙂


Mohamed Arshad K
Software Developer (CAD & BIM)