How create dialog box with embedded webpage

How create dialog box with embedded webpage

Anonymous
Not applicable
1,161 Views
4 Replies
Message 1 of 5

How create dialog box with embedded webpage

Anonymous
Not applicable

Basically what i'm trying to do is create a revit plugin that has a button which when clicked, will display a dialog box which would display the contents of a webpage. Is this possible in revit? I would also like to know if there's anyway to pass data between revit and this dialog box. Any help would much appreciated. 

0 Likes
Accepted solutions (2)
1,162 Views
4 Replies
Replies (4)
Message 2 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous ,

this will help you to  create pushbutton in ribbon panel

https://www.revitapidocs.com/2019/544c0af7-6124-4f64-a25d-46e81ac5300f.htm 

 

This below link will help you to create a simple form with a button

https://spiderinnet.typepad.com/blog/2011/10/create-a-simple-data-input-net-form-with-c.html 

 

This below link will help you to access and display the contents of the web page

https://stackoverflow.com/questions/1125739/access-the-contents-of-a-web-page-with-c-sharp 

 

I hope this helps.

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

You can display a web page in your own Windows form using CefSharp.

 

Furthermore, CefSharp is also used by Revit itself, so it is already loaded:

  

https://www.google.com/search?q=cefsharp&as_sitesearch=thebuildingcoder.typepad.com

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 4 of 5

Anonymous
Not applicable

This seems like what i'm looking for. Is there any way to pass data back from the browser to my revit plugin? Basically, what i'm trying to do is have the form display a website with a bunch of families. When one of the families is clicked on the website (in the form), I want the plugin to download the family and load it into the current revit document. Is this possible? Any code sample would be greatly appreciated. 

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

That very question has been recently discussed right here in the forum.

 

Search for 'Helix'. Here are the first hits that show up for me:

 

 

Please always search for existing answers before asking!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes