Revit API customize CEFSharp settings

Revit API customize CEFSharp settings

lorenzo.zoiaGQ7JC
Community Visitor Community Visitor
1,060 Views
1 Reply
Message 1 of 2

Revit API customize CEFSharp settings

lorenzo.zoiaGQ7JC
Community Visitor
Community Visitor

Looking into the Revit API Changes 2020 I can see, in the section dedicated to CEFSharp:

 

Revit automatically initializes CEFsharp
Revit and Autodesk add-ins use the CEFsharp library internally for several features. Some third-party add-ins do so as well. Occasionally, when different versions of the library are used, it leads to instability issues for Revit.In order to avoid version conflicts, we are clarifying what CEFsharp version is being used, and loading it prior to all add-in initialization.

 

For my application I need to enable some features of CEFSharp: gpu acceleration and webGL support.

Unfortunately, as I can read from CEFSharp documentation, those features can only be activated during CEF initialization, but this action can be performed only once per process. 

Since in the Revit documentation there is no mention about on how to customize the default settings, basically I  can't start a Chromium instance with those features enabled.

 

Is there somebody that can help me with this issue ?
Thanks a lot.

1,061 Views
1 Reply
Reply (1)
Message 2 of 2

ricaun
Advisor
Advisor

Hello, 

 

I believe is not possible to edit the CEFSharp configuration and Autodesk never gonna enable the possibility to customize the initialization, looks like a door to breaking several features that use the CEFSharp library.

 

Especially if your Application changes the configuration and another and another... Gonna be a mess, something gonna break.

 

If you gonna use CEFSharp inside Revit, you don't have a choice, you receive a specific version with a specific configuration...

 

See yaa! 😐

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes