Skip to content

CefSharp References used in Autodesk Revit.

License

Notifications You must be signed in to change notification settings

ricaun-io/ricaun.Revit.CefSharp

Repository files navigation

ricaun.Revit.CefSharp

Revit 2019 Visual Studio 2022 Nuke License MIT Build Release

This package automatically provides access to the appropriate CefSharp version that has already been loaded and initialized by Revit, cf. the explanation on encountering an error while using CefSharp.

PackageReference

<PackageReference Include="ricaun.Revit.CefSharp" Version="$(RevitVersion).*" IncludeAssets="build; compile" PrivateAssets="All" />

Revit - CefSharp

  • Revit 2025 - 119.4.30
  • Revit 2024 - 105.3.390
  • Revit 2023 - 92.0.260
  • Revit 2022 - 65.0.1
  • Revit 2021 - 65.0.1
  • Revit 2020 - 65.0.1
  • Revit 2019 - 57.0.0

Usage

The CefSharp is already initialized inside Revit before any plugin, just use the CefSharp.Wpf reference inside your wpf works without any initialization requirement.

xmlns:cef="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"

Use the cef:ChromiumWebBrowser with an Address to create a web browser in your wpf.

<cef:ChromiumWebBrowser Address="https://github.com/ricaun-io/ricaun.Revit.CefSharp" />

Example

<Window x:Class="RevitAddin.WebView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:cef="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
        mc:Ignorable="d">
    <Grid>
        <cef:ChromiumWebBrowser Address="https://github.com/ricaun-io/ricaun.Revit.CefSharp" />
    </Grid>
</Window>

Release

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!