xml.Revit.Toolkit
2023.5.9
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 2023.5.9
NuGet\Install-Package xml.Revit.Toolkit -Version 2023.5.9
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="2023.5.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add xml.Revit.Toolkit --version 2023.5.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xml.Revit.Toolkit, 2023.5.9"
#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=2023.5.9
// Install xml.Revit.Toolkit as a Cake Tool
#tool nuget:?package=xml.Revit.Toolkit&version=2023.5.9
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
可使用取消任务令牌 CancellationTokenSource
/* 作 者: 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();
}
});
}
}
}
ProgressBarWindow
如何使用简单的任务进度条
/* 作 者: xml
** 创建时间: 2024/4/19 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 Autodesk.Revit.DB;
using xml.Revit.Toolkit.Attributes;
using xml.Revit.Toolkit.Extensions;
using xml.Revit.Toolkit.Utils;
using xml.Revit.Toolkit.Views;
namespace xml.Revit.Dev
{
[Xml("测试进度条")]
[Transaction(TransactionMode.Manual)]
public sealed class Cmd : XmlExternalCommand
{
protected override void Execute(ref string message, ElementSet elements)
{
var doc = uidoc.Document;
using var progressBarView = new ProgressBarWindow();
doc.TransactionGroup(tg =>
{
progressBarView.Run(
Enumerable.Range(0, 100),
i =>
{
var pnt = XYZ.BasisX * i;
doc.Transaction(t => doc.CreateDetailArc(pnt));
Thread.Sleep(50);
}
);
});
}
}
}
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)
- LiteDB (>= 5.0.19)
- 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 (>= 2023.1.1)
- Nice3point.Revit.Api.RevitAPI (>= 2023.1.1)
- Nice3point.Revit.Api.RevitAPIUI (>= 2023.1.1)
- Nice3point.Revit.Api.UIFramework (>= 2023.1.1)
- Nice3point.Revit.Api.UIFrameworkServices (>= 2023.1.1)
- System.Resources.Extensions (>= 8.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.6.4 | 37 | 6/29/2024 |
2025.6.3 | 43 | 6/27/2024 |
2025.6.2 | 60 | 6/25/2024 |
2025.6.1 | 67 | 6/23/2024 |
2025.6.0 | 65 | 6/23/2024 |
2025.5.16 | 93 | 6/16/2024 |
2025.5.15 | 88 | 6/16/2024 |
2025.5.14 | 76 | 6/15/2024 |
2025.5.13 | 77 | 6/15/2024 |
2025.5.12 | 77 | 6/12/2024 |
2025.5.11 | 70 | 6/12/2024 |
2025.5.10 | 68 | 6/12/2024 |
2025.5.9 | 70 | 6/12/2024 |
2025.5.8 | 56 | 6/12/2024 |
2025.5.7 | 64 | 6/12/2024 |
2025.5.6 | 64 | 6/11/2024 |
2025.5.5 | 67 | 6/11/2024 |
2025.5.4 | 80 | 6/7/2024 |
2025.5.3 | 83 | 6/3/2024 |
2025.5.2 | 93 | 6/3/2024 |
2025.5.1 | 77 | 6/3/2024 |
2025.5.0 | 92 | 6/2/2024 |
2025.4.7 | 86 | 6/2/2024 |
2025.4.6 | 80 | 6/2/2024 |
2025.4.5 | 82 | 6/2/2024 |
2025.4.4 | 86 | 6/1/2024 |
2025.4.3 | 64 | 5/31/2024 |
2025.4.2 | 86 | 5/29/2024 |
2025.4.1 | 77 | 5/26/2024 |
2025.3.7 | 86 | 5/26/2024 |
2025.3.6 | 82 | 5/26/2024 |
2025.3.5 | 94 | 5/26/2024 |
2025.3.4 | 89 | 5/26/2024 |
2025.3.3 | 88 | 5/25/2024 |
2025.3.2 | 90 | 4/19/2024 |
2025.3.1 | 104 | 4/9/2024 |
2025.3.0 | 98 | 4/7/2024 |
2025.2.16 | 98 | 4/7/2024 |
2025.2.15 | 92 | 4/7/2024 |
2024.6.4 | 32 | 6/29/2024 |
2024.6.3 | 33 | 6/27/2024 |
2024.6.2 | 53 | 6/25/2024 |
2024.6.1 | 69 | 6/23/2024 |
2024.6.0 | 65 | 6/23/2024 |
2024.5.16 | 76 | 6/16/2024 |
2024.5.15 | 70 | 6/16/2024 |
2024.5.14 | 70 | 6/15/2024 |
2024.5.13 | 76 | 6/15/2024 |
2024.5.12 | 68 | 6/12/2024 |
2024.5.11 | 63 | 6/12/2024 |
2024.5.10 | 64 | 6/12/2024 |
2024.5.9 | 53 | 6/12/2024 |
2024.5.8 | 56 | 6/12/2024 |
2024.5.7 | 57 | 6/12/2024 |
2024.5.6 | 55 | 6/11/2024 |
2024.5.5 | 55 | 6/11/2024 |
2024.5.4 | 63 | 6/7/2024 |
2024.5.3 | 74 | 6/3/2024 |
2024.5.2 | 80 | 6/3/2024 |
2024.5.1 | 69 | 6/3/2024 |
2024.5.0 | 70 | 6/2/2024 |
2024.4.7 | 74 | 6/2/2024 |
2024.4.6 | 72 | 6/2/2024 |
2024.4.5 | 73 | 6/2/2024 |
2024.4.4 | 69 | 6/1/2024 |
2024.4.3 | 55 | 5/31/2024 |
2024.4.2 | 79 | 5/29/2024 |
2024.4.1 | 76 | 5/26/2024 |
2024.3.7 | 82 | 5/26/2024 |
2024.3.6 | 75 | 5/26/2024 |
2024.3.5 | 79 | 5/26/2024 |
2024.3.4 | 80 | 5/26/2024 |
2024.3.3 | 82 | 5/25/2024 |
2024.3.2 | 75 | 4/19/2024 |
2024.3.1 | 91 | 4/9/2024 |
2024.3.0 | 98 | 4/7/2024 |
2024.2.16 | 102 | 4/7/2024 |
2024.2.15 | 87 | 4/3/2024 |
2024.2.14 | 120 | 3/31/2024 |
2024.2.13 | 122 | 3/28/2024 |
2024.2.12 | 127 | 3/23/2024 |
2024.2.11 | 132 | 3/23/2024 |
2024.2.10 | 168 | 3/9/2024 |
2024.2.9 | 173 | 3/7/2024 |
2024.2.8 | 206 | 3/3/2024 |
2024.2.7 | 209 | 3/3/2024 |
2024.2.0 | 220 | 2/16/2024 |
2023.6.4 | 31 | 6/29/2024 |
2023.6.3 | 33 | 6/27/2024 |
2023.6.2 | 51 | 6/25/2024 |
2023.6.1 | 61 | 6/23/2024 |
2023.6.0 | 63 | 6/23/2024 |
2023.5.16 | 70 | 6/16/2024 |
2023.5.15 | 71 | 6/16/2024 |
2023.5.14 | 75 | 6/15/2024 |
2023.5.13 | 76 | 6/15/2024 |
2023.5.12 | 65 | 6/12/2024 |
2023.5.11 | 58 | 6/12/2024 |
2023.5.10 | 62 | 6/12/2024 |
2023.5.9 | 55 | 6/12/2024 |
2023.5.8 | 56 | 6/12/2024 |
2023.5.7 | 56 | 6/12/2024 |
2023.5.6 | 57 | 6/11/2024 |
2023.5.5 | 55 | 6/11/2024 |
2023.5.4 | 65 | 6/7/2024 |
2023.5.3 | 75 | 6/3/2024 |
2023.5.2 | 82 | 6/3/2024 |
2023.5.1 | 68 | 6/3/2024 |
2023.5.0 | 88 | 6/2/2024 |
2023.4.7 | 76 | 6/2/2024 |
2023.4.6 | 74 | 6/2/2024 |
2023.4.5 | 76 | 6/2/2024 |
2023.4.4 | 66 | 6/1/2024 |
2023.4.3 | 54 | 5/31/2024 |
2023.4.2 | 72 | 5/29/2024 |
2023.4.1 | 78 | 5/26/2024 |
2023.3.7 | 76 | 5/26/2024 |
2023.3.6 | 77 | 5/26/2024 |
2023.3.5 | 84 | 5/26/2024 |
2023.3.4 | 76 | 5/26/2024 |
2023.3.3 | 80 | 5/25/2024 |
2023.3.2 | 76 | 4/19/2024 |
2023.3.1 | 90 | 4/9/2024 |
2023.3.0 | 84 | 4/7/2024 |
2023.2.16 | 89 | 4/7/2024 |
2023.2.15 | 105 | 4/3/2024 |
2023.2.14 | 102 | 3/31/2024 |
2023.2.13 | 131 | 3/28/2024 |
2023.2.12 | 117 | 3/23/2024 |
2023.2.11 | 127 | 3/23/2024 |
2023.2.10 | 168 | 3/9/2024 |
2023.2.9 | 159 | 3/7/2024 |
2023.2.8 | 178 | 3/3/2024 |
2023.2.7 | 163 | 3/3/2024 |
2023.2.6 | 179 | 3/2/2024 |
2023.2.5 | 191 | 2/24/2024 |
2023.2.4 | 202 | 2/24/2024 |
2023.2.3 | 190 | 2/19/2024 |
2023.2.2 | 199 | 2/19/2024 |
2023.2.1 | 202 | 2/19/2024 |
2023.2.0 | 209 | 2/16/2024 |
2022.6.4 | 32 | 6/29/2024 |
2022.6.3 | 31 | 6/27/2024 |
2022.6.2 | 51 | 6/25/2024 |
2022.6.1 | 60 | 6/23/2024 |
2022.6.0 | 63 | 6/23/2024 |
2022.5.16 | 71 | 6/16/2024 |
2022.5.15 | 80 | 6/16/2024 |
2022.5.14 | 76 | 6/15/2024 |
2022.5.13 | 68 | 6/15/2024 |
2022.5.12 | 67 | 6/12/2024 |
2022.5.11 | 61 | 6/12/2024 |
2022.5.10 | 60 | 6/12/2024 |
2022.5.9 | 62 | 6/12/2024 |
2022.5.8 | 54 | 6/12/2024 |
2022.5.7 | 58 | 6/12/2024 |
2022.5.6 | 58 | 6/11/2024 |
2022.5.5 | 59 | 6/11/2024 |
2022.5.4 | 62 | 6/7/2024 |
2022.5.3 | 73 | 6/3/2024 |
2022.5.2 | 70 | 6/3/2024 |
2022.5.1 | 71 | 6/3/2024 |
2022.5.0 | 82 | 6/2/2024 |
2022.4.7 | 82 | 6/2/2024 |
2022.4.6 | 71 | 6/2/2024 |
2022.4.5 | 71 | 6/2/2024 |
2022.4.4 | 67 | 6/1/2024 |
2022.4.3 | 59 | 5/31/2024 |
2022.4.2 | 71 | 5/29/2024 |
2022.4.1 | 78 | 5/26/2024 |
2022.3.7 | 88 | 5/26/2024 |
2022.3.6 | 81 | 5/26/2024 |
2022.3.5 | 81 | 5/26/2024 |
2022.3.4 | 71 | 5/26/2024 |
2022.3.3 | 77 | 5/25/2024 |
2022.3.2 | 71 | 4/19/2024 |
2022.3.1 | 106 | 4/9/2024 |
2022.3.0 | 92 | 4/7/2024 |
2022.2.16 | 85 | 4/7/2024 |
2022.2.15 | 87 | 4/3/2024 |
2022.2.14 | 115 | 3/31/2024 |
2022.2.13 | 115 | 3/28/2024 |
2022.2.12 | 117 | 3/23/2024 |
2022.2.11 | 145 | 3/23/2024 |
2022.2.10 | 163 | 3/9/2024 |
2022.2.9 | 165 | 3/7/2024 |
2022.2.8 | 173 | 3/3/2024 |
2022.2.7 | 184 | 3/3/2024 |
2022.2.6 | 184 | 3/2/2024 |
2022.2.5 | 200 | 2/24/2024 |
2022.2.4 | 208 | 2/24/2024 |
2022.2.3 | 185 | 2/19/2024 |
2022.2.2 | 221 | 2/19/2024 |
2022.2.1 | 216 | 2/19/2024 |
2022.2.0 | 200 | 2/16/2024 |
2021.6.4 | 32 | 6/29/2024 |
2021.6.3 | 31 | 6/27/2024 |
2021.6.2 | 53 | 6/25/2024 |
2021.6.1 | 70 | 6/23/2024 |
2021.6.0 | 62 | 6/23/2024 |
2021.5.16 | 81 | 6/16/2024 |
2021.5.15 | 73 | 6/16/2024 |
2021.5.14 | 69 | 6/15/2024 |
2021.5.13 | 73 | 6/15/2024 |
2021.5.12 | 64 | 6/12/2024 |
2021.5.11 | 61 | 6/12/2024 |
2021.5.10 | 60 | 6/12/2024 |
2021.5.9 | 56 | 6/12/2024 |
2021.5.8 | 56 | 6/12/2024 |
2021.5.7 | 57 | 6/12/2024 |
2021.5.6 | 55 | 6/11/2024 |
2021.5.5 | 58 | 6/11/2024 |
2021.5.4 | 62 | 6/7/2024 |
2021.5.3 | 71 | 6/3/2024 |
2021.5.2 | 78 | 6/3/2024 |
2021.5.1 | 71 | 6/3/2024 |
2021.5.0 | 67 | 6/2/2024 |
2021.4.7 | 79 | 6/2/2024 |
2021.4.6 | 71 | 6/2/2024 |
2021.4.5 | 75 | 6/2/2024 |
2021.4.4 | 77 | 6/1/2024 |
2021.4.3 | 56 | 5/31/2024 |
2021.4.2 | 71 | 5/29/2024 |
2021.4.1 | 79 | 5/26/2024 |
2021.3.7 | 82 | 5/26/2024 |
2021.3.6 | 81 | 5/26/2024 |
2021.3.5 | 79 | 5/26/2024 |
2021.3.4 | 81 | 5/26/2024 |
2021.3.3 | 78 | 5/25/2024 |
2021.3.2 | 76 | 4/19/2024 |
2021.3.1 | 94 | 4/9/2024 |
2021.3.0 | 93 | 4/7/2024 |
2021.2.16 | 91 | 4/7/2024 |
2021.2.15 | 87 | 4/3/2024 |
2021.2.14 | 112 | 3/31/2024 |
2021.2.13 | 119 | 3/28/2024 |
2021.2.12 | 114 | 3/23/2024 |
2021.2.11 | 129 | 3/23/2024 |
2021.2.10 | 164 | 3/9/2024 |
2021.2.9 | 158 | 3/7/2024 |
2021.2.8 | 186 | 3/3/2024 |
2021.2.7 | 183 | 3/3/2024 |
2021.2.6 | 172 | 3/2/2024 |
2021.2.5 | 186 | 2/24/2024 |
2021.2.4 | 210 | 2/24/2024 |
2021.2.3 | 201 | 2/19/2024 |
2021.2.2 | 205 | 2/19/2024 |
2021.2.1 | 219 | 2/19/2024 |
2021.2.0 | 194 | 2/16/2024 |
2020.6.4 | 30 | 6/29/2024 |
2020.6.3 | 33 | 6/27/2024 |
2020.6.2 | 53 | 6/25/2024 |
2020.6.1 | 60 | 6/23/2024 |
2020.6.0 | 66 | 6/23/2024 |
2020.5.16 | 81 | 6/16/2024 |
2020.5.15 | 74 | 6/16/2024 |
2020.5.14 | 72 | 6/15/2024 |
2020.5.13 | 75 | 6/15/2024 |
2020.5.12 | 70 | 6/12/2024 |
2020.5.11 | 61 | 6/12/2024 |
2020.5.10 | 62 | 6/12/2024 |
2020.5.9 | 63 | 6/12/2024 |
2020.5.8 | 55 | 6/12/2024 |
2020.5.7 | 58 | 6/12/2024 |
2020.5.6 | 56 | 6/11/2024 |
2020.5.5 | 59 | 6/11/2024 |
2020.5.4 | 62 | 6/7/2024 |
2020.5.3 | 97 | 6/3/2024 |
2020.5.2 | 67 | 6/3/2024 |
2020.5.1 | 67 | 6/3/2024 |
2020.5.0 | 70 | 6/2/2024 |
2020.4.7 | 77 | 6/2/2024 |
2020.4.6 | 77 | 6/2/2024 |
2020.4.5 | 72 | 6/2/2024 |
2020.4.4 | 68 | 6/1/2024 |
2020.4.3 | 58 | 5/31/2024 |
2020.4.2 | 69 | 5/29/2024 |
2020.4.1 | 75 | 5/26/2024 |
2020.3.7 | 83 | 5/26/2024 |
2020.3.6 | 84 | 5/26/2024 |
2020.3.5 | 77 | 5/26/2024 |
2020.3.4 | 81 | 5/26/2024 |
2020.3.3 | 84 | 5/25/2024 |
2020.3.2 | 83 | 4/19/2024 |
2020.3.1 | 110 | 4/9/2024 |
2020.3.0 | 97 | 4/7/2024 |
2020.2.16 | 95 | 4/7/2024 |
2020.2.15 | 91 | 4/3/2024 |
2020.2.14 | 116 | 3/31/2024 |
2020.2.13 | 115 | 3/28/2024 |
2020.2.12 | 111 | 3/23/2024 |
2020.2.11 | 128 | 3/23/2024 |
2020.2.10 | 153 | 3/9/2024 |
2020.2.9 | 149 | 3/7/2024 |
2020.2.8 | 175 | 3/3/2024 |
2020.2.7 | 174 | 3/3/2024 |
2020.2.6 | 184 | 3/2/2024 |
2020.2.5 | 191 | 2/24/2024 |
2020.2.4 | 200 | 2/24/2024 |
2020.2.3 | 220 | 2/19/2024 |
2020.2.2 | 212 | 2/19/2024 |
2020.2.1 | 205 | 2/19/2024 |
2020.2.0 | 212 | 2/16/2024 |