xml.Revit.Toolkit 2020.2.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package xml.Revit.Toolkit --version 2020.2.4
                    
NuGet\Install-Package xml.Revit.Toolkit -Version 2020.2.4
                    
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="xml.Revit.Toolkit" Version="2020.2.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xml.Revit.Toolkit" Version="2020.2.4" />
                    
Directory.Packages.props
<PackageReference Include="xml.Revit.Toolkit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add xml.Revit.Toolkit --version 2020.2.4
                    
#r "nuget: xml.Revit.Toolkit, 2020.2.4"
                    
#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.
#:package xml.Revit.Toolkit@2020.2.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=xml.Revit.Toolkit&version=2020.2.4
                    
Install as a Cake Addin
#tool nuget:?package=xml.Revit.Toolkit&version=2020.2.4
                    
Install as a Cake Tool

xml.Revit.Toolkit

Autodesk Revit 2020 - 2024

Install

<PackageReference Include="xml.Revit.Toolkit" Version="2024.*-*" />

<PackageReference Include="xml.Revit.Toolkit" Version="2023.*-*" />

<PackageReference Include="xml.Revit.Toolkit" Version="2022.*-*" />

<PackageReference Include="xml.Revit.Toolkit" Version="2021.*-*" />

<PackageReference Include="xml.Revit.Toolkit" Version="2020.*-*" />

Technologies Used

  • C# 12
  • .NET Framework 4.8
  • .NET 8
RevitTask

Can use CancellationTokenSource with RevitTask

Task.Run(async () =>
{
    var source = new CancellationTokenSource(1000);
    var token = source.Token;
    try
    {
        await XmlDoc.Instance.RevitTask.RunAsync(
            () =>
            {
                var doc = uidoc.Document;
                doc.Transaction(
                    t =>
                    {
                        for (int i = 0; i < 100; i++)
                        {
                            if (token.IsCancellationRequested)
                            {
                                return;
                            }
                            doc.CreateDetailArc(XYZ.BasisX * i);
                            Thread.Sleep(50);
                        }
                    },
                    "Task token"
                );
            },
            token
        );
    }
    finally
    {
        source.Dispose();
    }
});
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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.10.6 263 7/31/2025
2026.10.5 272 6/14/2025
2025.10.6 194 7/31/2025
2025.10.5 242 6/14/2025
2024.10.6 196 7/31/2025
2024.10.5 245 6/14/2025
2023.10.6 197 7/31/2025
2023.10.5 239 6/14/2025
2022.10.6 210 7/31/2025
2022.10.5 237 6/14/2025
2021.10.6 207 7/31/2025
2021.10.5 261 6/14/2025
2020.10.6 204 7/31/2025
2020.10.5 233 6/14/2025
2020.2.4 326 2/24/2024
2019.10.6 209 7/31/2025
2019.10.5 246 6/14/2025
2018.10.6 205 7/31/2025
2018.10.5 234 6/14/2025
2017.10.6 193 7/31/2025
Loading failed