Scotec.Revit
2026.3.3
See the version list below for details.
dotnet add package Scotec.Revit --version 2026.3.3
NuGet\Install-Package Scotec.Revit -Version 2026.3.3
<PackageReference Include="Scotec.Revit" Version="2026.3.3" />
<PackageVersion Include="Scotec.Revit" Version="2026.3.3" />
<PackageReference Include="Scotec.Revit" />
paket add Scotec.Revit --version 2026.3.3
#r "nuget: Scotec.Revit, 2026.3.3"
#:package Scotec.Revit@2026.3.3
#addin nuget:?package=Scotec.Revit&version=2026.3.3
#tool nuget:?package=Scotec.Revit&version=2026.3.3
Scotec.Revit
Core library for building robust, testable, and maintainable Autodesk Revit add-ins with .NET.
Overview
Scotec.Revit provides the foundational abstractions and infrastructure for Revit add-in development. It simplifies command execution, application lifecycle management, and background-to-Revit-context communication, while promoting clean architecture through dependency injection and service separation.
Key Features
- RevitCommand: Base class for IExternalCommand with built-in transaction management, DI scope per execution, and structured failure handling. Supports transaction modes: None, Transaction, TransactionGroup, TransactionWithRollback, TransactionGroupWithRollback, and ReadOnly.
- RevitApp / RevitAppBase / RevitDbApp: Base classes for IExternalApplication and IExternalDBApplication that wire up an IHost (Microsoft.Extensions.Hosting) for the add-in lifecycle, enabling full IoC container support via Autofac.
- RevitTask: Enables safe execution of Revit API operations from any thread or async context using the IExternalEventHandler mechanism. Supports both result-returning and void tasks.
- RevitHostBuilder: Configures the hosted application and registers Revit-specific services.
- RevitUpdater: Base support for IUpdater (dynamic model update) implementations.
- RevitSpatialContainmentResolver: Resolves spatial containment (rooms, spaces, zones).
- RevitLinkGraphBuilder: Builds a graph of Revit link relationships for traversal and analysis.
- RevitBasicFileInfo: Reads Revit file metadata without opening a document.
Getting Started
Install the NuGet package:
dotnet add package Scotec.Revit
Your project must target net8.0-windows or net10.0-windows.
Related Packages
- Scotec.Revit.Isolation https://www.nuget.org/packages/Scotec.Revit.Isolation/
- Scotec.Revit.Ui https://www.nuget.org/packages/Scotec.Revit.Ui/
- Scotec.Revit.Wpf https://www.nuget.org/packages/Scotec.Revit.Wpf/
Documentation
- https://github.com/scotec-Software-Solutions-AB/scotec-revit/blob/main/Documentation/RevitCommand.md
- https://github.com/scotec-Software-Solutions-AB/scotec-revit/blob/main/Documentation/RevitTask.md
- https://github.com/scotec-Software-Solutions-AB/scotec-revit/blob/main/Documentation/RevitAddinIsolation.md
License
MIT License https://licenses.nuget.org/MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- Autofac.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Hosting (>= 10.0.2)
- OpenMcdf (>= 3.1.4)
- Scotec.Extensions.Linq (>= 1.1.1)
- Scotec.Extensions.Utilities (>= 1.1.1)
- Scotec.Revit.Isolation (>= 2026.3.3)
-
net8.0-windows7.0
- Autofac.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Hosting (>= 10.0.2)
- OpenMcdf (>= 3.1.4)
- Scotec.Extensions.Linq (>= 1.1.1)
- Scotec.Extensions.Utilities (>= 1.1.1)
- Scotec.Revit.Isolation (>= 2026.3.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Scotec.Revit:
| Package | Downloads |
|---|---|
|
Scotec.Revit.Wpf
Adds WPF support to Scotec.Revit. |
|
|
Scotec.Revit.Ui
Adds UI support to Scotec.Revit. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2027.4.0-dev.4 | 62 | 6/20/2026 |
| 2027.3.4 | 146 | 6/15/2026 |
| 2027.3.3 | 110 | 6/10/2026 |
| 2026.4.0-dev.4 | 62 | 6/20/2026 |
| 2026.3.4 | 112 | 6/15/2026 |
| 2026.3.3 | 106 | 6/10/2026 |
| 2025.4.0-dev.4 | 71 | 6/20/2026 |
| 2025.3.4 | 126 | 6/15/2026 |
| 2025.3.3 | 109 | 6/10/2026 |