xml.Revit.Toolkit
2021.2.11
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package xml.Revit.Toolkit --version 2021.2.11
NuGet\Install-Package xml.Revit.Toolkit -Version 2021.2.11
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.11" />
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.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xml.Revit.Toolkit, 2021.2.11"
#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.11
// Install xml.Revit.Toolkit as a Cake Tool
#tool nuget:?package=xml.Revit.Toolkit&version=2021.2.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xml.Revit.Toolkit
Autodesk Revit 2020 - 2024
Install
安装 2024 <PackageReference Include="xml.Revit.Toolkit" Version="2024.*-*" />
安装 2023 <PackageReference Include="xml.Revit.Toolkit" Version="2023.*-*" />
安装 2022 <PackageReference Include="xml.Revit.Toolkit" Version="2022.*-*" />
安装 2021 <PackageReference Include="xml.Revit.Toolkit" Version="2021.*-*" />
安装 2020 <PackageReference Include="xml.Revit.Toolkit" Version="2020.*-*" />
Technologies Used
- C# 12
- .NET Framework 4.8
- .NET 8
RevitTask
Can use CancellationTokenSource
with RevitTask
/* 作 者: xml
** 创建时间: 2024/2/16 20:26:06
**
** Copyright 2024 by zedmoster
** Permission to use, copy, modify, and distribute this software in
** object code form for any purpose and without fee is hereby granted,
** provided that the above copyright notice appears in all copies and
** that both that copyright notice and the limited warranty and
** restricted rights notice below appear in all supporting
** documentation.
*/
using System.Diagnostics;
using Autodesk.Revit.DB;
using xml.Revit.Toolkit.Attributes;
using xml.Revit.Toolkit.Extensions;
using xml.Revit.Toolkit.Utils;
namespace xml.Revit.Dev
{
[Xml("TaskRevit", "测试 TaskRevit")]
[Transaction(TransactionMode.Manual)]
public class Cmd : XmlExternalCommand
{
protected override void Execute(ref string message, ElementSet elements)
{
Task.Run(async () =>
{
var source = new CancellationTokenSource(80);
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;
var detailArc = doc.CreateDetailArc(XYZ.BasisX * i);
Debug.Write(detailArc.Id);
}
},
"Task token"
);
},
token
);
}
finally
{
source.Dispose();
}
});
}
}
}
Product | Versions 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.
-
.NETFramework 4.8
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Extensions.Hosting (>= 8.0.0)
- Microsoft.Net.Http (>= 2.2.29)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- MouseKeyHook (>= 5.7.1)
- Newtonsoft.Json (>= 13.0.3)
- Nice3point.Revit.Api.AdWindows (>= 2021.1.50)
- Nice3point.Revit.Api.RevitAPI (>= 2021.1.50)
- Nice3point.Revit.Api.RevitAPIUI (>= 2021.1.50)
- Nice3point.Revit.Api.UIFramework (>= 2021.1.50)
- Nice3point.Revit.Api.UIFrameworkServices (>= 2021.1.50)
- System.Resources.Extensions (>= 8.0.0)
- WPF-UI (>= 3.0.0)
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 | 85 | 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 | 86 | 4/3/2024 |
2024.2.14 | 118 | 3/31/2024 |
2024.2.13 | 121 | 3/28/2024 |
2024.2.12 | 126 | 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 | 104 | 4/3/2024 |
2023.2.14 | 100 | 3/31/2024 |
2023.2.13 | 130 | 3/28/2024 |
2023.2.12 | 116 | 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 | 208 | 2/16/2024 |
2022.3.2 | 67 | 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 | 86 | 4/3/2024 |
2022.2.14 | 113 | 3/31/2024 |
2022.2.13 | 114 | 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 | 90 | 4/7/2024 |
2021.2.16 | 88 | 4/7/2024 |
2021.2.15 | 85 | 4/3/2024 |
2021.2.14 | 109 | 3/31/2024 |
2021.2.13 | 117 | 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 | 192 | 2/16/2024 |
2020.3.2 | 75 | 4/19/2024 |
2020.3.1 | 101 | 4/9/2024 |
2020.3.0 | 95 | 4/7/2024 |
2020.2.16 | 93 | 4/7/2024 |
2020.2.15 | 90 | 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 |