RevitAPI.Toolkit 3.0.1

Suggested Alternatives

xml.Revit.Toolkit

Additional Details

多版本支持,请使用xml.Revit.Toolkit

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package RevitAPI.Toolkit --version 3.0.1                
NuGet\Install-Package RevitAPI.Toolkit -Version 3.0.1                
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="RevitAPI.Toolkit" Version="3.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RevitAPI.Toolkit --version 3.0.1                
#r "nuget: RevitAPI.Toolkit, 3.0.1"                
#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 RevitAPI.Toolkit as a Cake Addin
#addin nuget:?package=RevitAPI.Toolkit&version=3.0.1

// Install RevitAPI.Toolkit as a Cake Tool
#tool nuget:?package=RevitAPI.Toolkit&version=3.0.1                

Revit 快速开发

安装

可以使用 nuget package 安装.

请注意 1.1 版本以上更新了相应类名称,存在与之前分享中的内不同

<PackageReference Include="RevitAPI.Toolkit" Version="*" />

简介

目录

External command

XmlRevitCommand 类实现了 IExternalCommand 接口.

可以自动监控 Autodesk.Revit.Exceptions.OperationCanceledException 操作.

    [Xml("功能名称")]
    [Transaction(TransactionMode.Manual)]
    public class CmdTest : XmlRevitCommand
    {
        protected override void Execute(ref string message, ElementSet elements)
        {
            // 弹窗打印当前项目名称
            XmlDoc.Print(uidoc.Document.Title);
        }
    }

External Application

获取程序集目录下类库中包含全部的 XmlAttribute 特性的功能,添加功能区面板

dll生成目录下 Resources 目录存放功能图标文件,格式 .png

  • 功能名称.png
  • 功能名称_16.png

默认未定义资源图标,功能图标则统一设置为默认图标

    internal class App : XmlExternalApplication
    {
        public override string TabName => "";
        public override string PanelName => "Revit快速开发";
    }
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