Is it possible to create a new tab/window with information when clicking an added button?

Is it possible to create a new tab/window with information when clicking an added button?

Anonymous
Not applicable
624 Views
2 Replies
Message 1 of 3

Is it possible to create a new tab/window with information when clicking an added button?

Anonymous
Not applicable

Hi everyone.

I'm getting started with the Revit API and I want to do what I believe should be a simple task, but I am not being able to make it.

I have some custom elements (walls, floors and roofs) with custom properties added to them (using shared properties).

I want to add a button for each of the element types mentioned such that when you pressed it, it gets all the custom types used in your current model (this is already done) and then I want to prompt a list with these types, an icon for each of them and its name, and I'd like to be able to click on each item in the list and get to another window (or something similar) and show technical and visual information about the type selected.

I've tried using DockablePanes but I don't think that suits me, because I want it to be dynamic, but I'm not entirely sure.

Any help would be appreciated.

Thank you all,

Jose Antonio Lorencio Abril

 

 

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

jeremy_tammik
Alumni
Alumni
Accepted solution

Welcome to the Revit API and congratulations on already completing a large part of your project. You have several options using the standard ,NET libraries and Windows APIs. The easiest for a beginner may be to display a model Windows form using ShowDialog:

 

https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.showdialog?view=net-5.0

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

Anonymous
Not applicable

I think that is exactly what I needed, thank you very much!

0 Likes