Tuna.Revit.Infrastructure 1.2.22

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tuna.Revit.Infrastructure --version 1.2.22
                    
NuGet\Install-Package Tuna.Revit.Infrastructure -Version 1.2.22
                    
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="Tuna.Revit.Infrastructure" Version="1.2.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tuna.Revit.Infrastructure" Version="1.2.22" />
                    
Directory.Packages.props
<PackageReference Include="Tuna.Revit.Infrastructure" />
                    
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 Tuna.Revit.Infrastructure --version 1.2.22
                    
#r "nuget: Tuna.Revit.Infrastructure, 1.2.22"
                    
#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 Tuna.Revit.Infrastructure@1.2.22
                    
#: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=Tuna.Revit.Infrastructure&version=1.2.22
                    
Install as a Cake Addin
#tool nuget:?package=Tuna.Revit.Infrastructure&version=1.2.22
                    
Install as a Cake Tool

Tuna.Revit.Toolkit

GitHub GitHub

English | 简体中文

English

Overview

Tuna.Revit.Toolkit is a powerful extension package for the Autodesk Revit API, designed to simplify Revit add-in development and improve productivity. It provides practical utilities and extension methods that make working with the Revit API simpler and more intuitive.

Features

  • Simplifies common Revit API operations
  • Rich extension methods
  • Supports multiple Revit versions
  • Easy integration into existing projects
  • Actively maintained

Documentation

Visit the official documentation for usage guides and API references: Official Docs

Supported Revit Versions

  • Revit 2016
  • Revit 2017
  • Revit 2018
  • Revit 2019
  • Revit 2020
  • Revit 2021
  • Revit 2022
  • Revit 2023
  • Revit 2024
  • Revit 2025
  • Revit 2026

NuGet Packages

Package Version Downloads
Tuna.Revit.Extensions 25.0 Nuget
Tuna.Revit.Infrastructure 25.0 Nuget

Quick Start

Below is a simple example demonstrating how to use Tuna.Revit.Toolkit:

using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Tuna.Revit.Extensions;

namespace MyRevitApp
{
    public class MyCommand : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            Document doc = uiapp.ActiveUIDocument.Document;

            // Use extension methods from Tuna.Revit.Extensions
            Wall wall = doc.GetElement("wall_id") as Wall;
            double length = wall.GetLength();

            return Result.Succeeded;
        }
    }
}

Contributing

We welcome community contributions! If you'd like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a feature branch - git checkout -b feature/amazing-feature
  3. Commit your changes - git commit -m 'Add an amazing feature'
  4. Push to the branch - git push origin feature/amazing-feature
  5. Open a Pull Request
Code Style
  • Follow C# coding conventions
  • Add XML documentation comments to all public APIs

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Acknowledgments

Thanks to all contributors and users. Special thanks to:

  • All code contributors
  • Users who provide valuable feedback
  • Autodesk Revit API community
  • The open-source community for support and encouragement

简体中文

简介

Tuna.Revit.Toolkit 是一个为 Autodesk Revit API 开发的强大扩展包,旨在简化 Revit 二次开发过程,提高开发效率。通过提供一系列实用工具和扩展方法,使 Revit API 的使用变得更加简单和直观。

功能特点

  • 简化常见 Revit API 操作
  • 提供丰富的扩展方法
  • 支持多个 Revit 版本
  • 易于集成到现有项目中
  • 持续更新和维护

文档

详细的使用文档和 API 参考,请访问我们的官方文档: 官方文档

支持的 Revit 版本

  • Revit 2016
  • Revit 2017
  • Revit 2018
  • Revit 2019
  • Revit 2020
  • Revit 2021
  • Revit 2022
  • Revit 2023
  • Revit 2024
  • Revit 2025
  • Revit 2026

NuGet 包列表

包名称 版本 下载量
Tuna.Revit.Extensions 25.0 Nuget
Tuna.Revit.Infrastructure 25.0 Nuget

快速开始

以下是一个简单的示例,展示如何使用 Tuna.Revit.Toolkit:

using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Tuna.Revit.Extensions;

namespace MyRevitApp
{
    public class MyCommand : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            Document doc = uiapp.ActiveUIDocument.Document;

            // 使用 Tuna.Revit.Extensions 的扩展方法
            Wall wall = doc.GetElement("wall_id") as Wall;
            double length = wall.GetLength();

            // 更多操作...
            return Result.Succeeded;
        }
    }
}

贡献指南

我们热忱欢迎社区贡献!如果您想为项目做出贡献,请遵循以下步骤:

  1. Fork 本仓库
  2. 创建特性分支 - git checkout -b feature/amazing-feature
  3. 提交您的更改 - git commit -m '添加某个惊人的特性'
  4. 推送到分支 - git push origin feature/amazing-feature
  5. 开启 Pull Request
代码规范
  • 遵循 C# 编码规范
  • 为所有公共 API 添加 XML 文档注释

许可证

本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。

联系方式

  • GitHub Issues: 提交问题
  • 邮箱: 1012201478@qq.com
  • 微信公众号: ITuna

致谢

衷心感谢所有为这个项目做出贡献的开发者和用户。特别鸣谢:

  • 所有提交代码的贡献者
  • 提供宝贵反馈的用户
  • Autodesk Revit API 社区
  • 开源社区的支持与鼓励

Tuna.Revit.Toolkit - 让 Revit 开发更简单、更高效

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net452 is compatible.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  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
1.3.23 139 12/31/2025
1.2.23 131 12/31/2025
1.2.22 116 12/30/2025
1.1.21 153 12/12/2025
1.0.21 153 12/12/2025