Nice3point.Revit.Toolkit 2022.1.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Nice3point.Revit.Toolkit --version 2022.1.1
NuGet\Install-Package Nice3point.Revit.Toolkit -Version 2022.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nice3point.Revit.Toolkit" Version="2022.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nice3point.Revit.Toolkit --version 2022.1.1
#r "nuget: Nice3point.Revit.Toolkit, 2022.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nice3point.Revit.Toolkit as a Cake Addin
#addin nuget:?package=Nice3point.Revit.Toolkit&version=2022.1.1

// Install Nice3point.Revit.Toolkit as a Cake Tool
#tool nuget:?package=Nice3point.Revit.Toolkit&version=2022.1.1

Toolkit for Revit plugin development

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Nice3point.Revit.Toolkit:

Package Downloads
HcBimUtils

Package Description

HC.Tech.So.Revit.Templates

Templates for Revit plugin development

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Nice3point.Revit.Toolkit:

Repository Stars
jeremytammik/RevitLookup
Interactive Revit RFA and RVT project database exploration tool to view and navigate BIM element parameters, properties and relationships.
Nice3point/RevitTemplates
Templates for creating Revit add-ins
Version Downloads Last updated
2025.0.0 651 4/2/2024
2024.1.0 954 4/2/2024
2024.0.1 1,785 1/2/2024
2023.2.0 902 4/2/2024
2023.1.1 1,528 1/2/2024
2022.2.0 616 4/2/2024
2022.1.1 1,527 1/2/2024
2021.2.0 734 4/2/2024
2021.1.1 1,660 1/2/2024
2020.2.0 561 4/2/2024
2020.1.1 1,342 1/2/2024
2019.0.12 1,796 12/28/2022

- New **Context** class.

   Provides computed properties to retrieve Revit objects in the current session. Values are provided even outside the Revit context.

   - Context.UiApplication;
   - Context.Application;
   - Context.UiDocument;
   - Context.Document;
   - Context.ActiveView;
   - Context.ActiveGraphicalView;
   - Context.ActiveView;

   ```C#
   Context.Document.Create.NewFamilyInstance();
   Context.ActiveView = view;
   ```

- New **FrameworkElementCreator**. Creates FrameworkElements for the dock pane.

   ```C#
   DockablePaneProvider.Register(application)
       .SetId(guid)
       .SetTitle(title)
       .SetConfiguration(data =>
       {
           data.FrameworkElementCreator = new FrameworkElementCreator<DockPaneView>();
       });
   ```
 Available overloading with IServiceProvider, in case you use hosting.

- **ResolveHelper** reworked. Now you need to specify a type to resolve dependencies. The directory where the type is defined will be used to search for dependencies.

 Enabled by default for all ExternalCommand and ExternalApplication, so only needed for direct invocation in special cases.

 The current version now disables all resolvers used in the domain to avoid conflicts, and to bypass cases where Revit loaded assemblies from another plugin's folder.

 ```c#
 try
 {
     ResolveHelper.BeginAssemblyResolve<DockView>();
     window.Show();
 }
 finally
 {
     ResolveHelper.EndAssemblyResolve();
 }
 ```