xml.Revit.Toolkit 2021.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package xml.Revit.Toolkit --version 2021.2.0
NuGet\Install-Package xml.Revit.Toolkit -Version 2021.2.0
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="2021.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add xml.Revit.Toolkit --version 2021.2.0
#r "nuget: xml.Revit.Toolkit, 2021.2.0"
#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 xml.Revit.Toolkit as a Cake Addin
#addin nuget:?package=xml.Revit.Toolkit&version=2021.2.0

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

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
2025.3.2 84 4/19/2024
2025.3.1 103 4/9/2024
2025.3.0 97 4/7/2024
2025.2.16 94 4/7/2024
2025.2.15 91 4/7/2024
2024.3.2 70 4/19/2024
2024.3.1 90 4/9/2024
2024.3.0 96 4/7/2024
2024.2.16 100 4/7/2024
2024.2.15 85 4/3/2024
2024.2.14 118 3/31/2024
2024.2.13 121 3/28/2024
2024.2.12 125 3/23/2024
2024.2.11 130 3/23/2024
2024.2.10 167 3/9/2024
2024.2.9 172 3/7/2024
2024.2.8 205 3/3/2024
2024.2.7 208 3/3/2024
2024.2.0 218 2/16/2024
2023.3.2 70 4/19/2024
2023.3.1 89 4/9/2024
2023.3.0 83 4/7/2024
2023.2.16 87 4/7/2024
2023.2.15 103 4/3/2024
2023.2.14 100 3/31/2024
2023.2.13 129 3/28/2024
2023.2.12 115 3/23/2024
2023.2.11 125 3/23/2024
2023.2.10 167 3/9/2024
2023.2.9 158 3/7/2024
2023.2.8 177 3/3/2024
2023.2.7 162 3/3/2024
2023.2.6 178 3/2/2024
2023.2.5 189 2/24/2024
2023.2.4 200 2/24/2024
2023.2.3 189 2/19/2024
2023.2.2 198 2/19/2024
2023.2.1 201 2/19/2024
2023.2.0 207 2/16/2024
2022.3.2 66 4/19/2024
2022.3.1 97 4/9/2024
2022.3.0 90 4/7/2024
2022.2.16 83 4/7/2024
2022.2.15 85 4/3/2024
2022.2.14 113 3/31/2024
2022.2.13 113 3/28/2024
2022.2.12 115 3/23/2024
2022.2.11 143 3/23/2024
2022.2.10 162 3/9/2024
2022.2.9 164 3/7/2024
2022.2.8 172 3/3/2024
2022.2.7 183 3/3/2024
2022.2.6 182 3/2/2024
2022.2.5 198 2/24/2024
2022.2.4 192 2/24/2024
2022.2.3 184 2/19/2024
2022.2.2 220 2/19/2024
2022.2.1 215 2/19/2024
2022.2.0 199 2/16/2024
2021.3.2 70 4/19/2024
2021.3.1 92 4/9/2024
2021.3.0 89 4/7/2024
2021.2.16 88 4/7/2024
2021.2.15 84 4/3/2024
2021.2.14 109 3/31/2024
2021.2.13 116 3/28/2024
2021.2.12 111 3/23/2024
2021.2.11 126 3/23/2024
2021.2.10 162 3/9/2024
2021.2.9 156 3/7/2024
2021.2.8 184 3/3/2024
2021.2.7 181 3/3/2024
2021.2.6 169 3/2/2024
2021.2.5 183 2/24/2024
2021.2.4 208 2/24/2024
2021.2.3 200 2/19/2024
2021.2.2 204 2/19/2024
2021.2.1 218 2/19/2024
2021.2.0 190 2/16/2024
2020.3.2 72 4/19/2024
2020.3.1 99 4/9/2024
2020.3.0 93 4/7/2024
2020.2.16 91 4/7/2024
2020.2.15 88 4/3/2024
2020.2.14 114 3/31/2024
2020.2.13 114 3/28/2024
2020.2.12 110 3/23/2024
2020.2.11 127 3/23/2024
2020.2.10 152 3/9/2024
2020.2.9 148 3/7/2024
2020.2.8 174 3/3/2024
2020.2.7 173 3/3/2024
2020.2.6 183 3/2/2024
2020.2.5 189 2/24/2024
2020.2.4 199 2/24/2024
2020.2.3 219 2/19/2024
2020.2.2 211 2/19/2024
2020.2.1 204 2/19/2024
2020.2.0 208 2/16/2024