NET6 and MAUI

NET6 and MAUI

CaoduroC
Enthusiast Enthusiast
1,508 Views
4 Replies
Message 1 of 5

NET6 and MAUI

CaoduroC
Enthusiast
Enthusiast

Hey forum, I know that many has tested the possibility to use CefSharp, Ipc communication and so on, to be able to run WebUI applications inside Revit.

Many have failed (including me) in finding what the right approach is.

The real question is: has anyone tested an Hybrid Blazor app running on Maui and NET6 inside Revit? 
Not even sure that is possibile and the the next question is, has anyone tested SignalR communication between Revit and a native app?

There has to be a better way to do this whole Web thing with Revit!

0 Likes
1,509 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

I think the simplest and obvious approach is easy to achieve: Revit makes use of CeSharp itself, so all your add-in has to do is reference and use the built-in Revit CefSharp modules:

  

C:\Program Files\Autodesk\Revit 2022>ff -r cefsh*
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.BrowserSubprocess.Core.dll
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.BrowserSubprocess.exe
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.Core.dll
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.Core.xml
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.dll
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.Wpf.dll
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.Wpf.XML
C:\Program Files\Autodesk\Revit 2022\CefSharp\CefSharp.XML
C:\Program Files\Autodesk\Revit 2022\Sentiment\CefSharp.BrowserSubprocess.Core.dll
C:\Program Files\Autodesk\Revit 2022\Sentiment\CefSharp.BrowserSubprocess.exe
C:\Program Files\Autodesk\Revit 2022\Sentiment\CefSharp.Core.dll
C:\Program Files\Autodesk\Revit 2022\Sentiment\CefSharp.dll
C:\Program Files\Autodesk\Revit 2022\Sentiment\CefSharp.Wpf.dll

  

What is the problem with that?

  

 

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

CaoduroC
Enthusiast
Enthusiast
Thanks Jeremy,
I know perfectly this solution, and all the problems that comes with it, without mentioning that the version is probably not the latest since few years.
I am talking about using the latest and greatest web technologies, including cross-platform and native, and at the same time being able to create an addin for Revit.
Thanks but this didn't answer my question.
0 Likes
Message 4 of 5

jeremy_tammik
Alumni
Alumni

Thank you or clarifying and sorry I was not able to help. I look forward very much to hearing what you can find out about possibilities to implement the latest and greatest in this area. Good luck!

  

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

Kennan.Chen
Advocate
Advocate

It is possible to self host a ASP.NET web server using the official nuget packages.

According to this github issue(https://github.com/dotnet/aspnetcore/issues/15603) , I suppose it is also possible to self host a blazor app.

0 Likes