Tuna.Revit.Infrastructure
1.2.22
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
<PackageReference Include="Tuna.Revit.Infrastructure" Version="1.2.22" />
<PackageVersion Include="Tuna.Revit.Infrastructure" Version="1.2.22" />
<PackageReference Include="Tuna.Revit.Infrastructure" />
paket add Tuna.Revit.Infrastructure --version 1.2.22
#r "nuget: Tuna.Revit.Infrastructure, 1.2.22"
#:package Tuna.Revit.Infrastructure@1.2.22
#addin nuget:?package=Tuna.Revit.Infrastructure&version=1.2.22
#tool nuget:?package=Tuna.Revit.Infrastructure&version=1.2.22
Tuna.Revit.Toolkit
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 | |
| Tuna.Revit.Infrastructure | 25.0 |
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:
- Fork the repository
- Create a feature branch -
git checkout -b feature/amazing-feature - Commit your changes -
git commit -m 'Add an amazing feature' - Push to the branch -
git push origin feature/amazing-feature - 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
- GitHub Issues: Submit an issue
- Email: 1012201478@qq.com
- WeChat: ITuna
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 | |
| Tuna.Revit.Infrastructure | 25.0 |
快速开始
以下是一个简单的示例,展示如何使用 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;
}
}
}
贡献指南
我们热忱欢迎社区贡献!如果您想为项目做出贡献,请遵循以下步骤:
- Fork 本仓库
- 创建特性分支 -
git checkout -b feature/amazing-feature - 提交您的更改 -
git commit -m '添加某个惊人的特性' - 推送到分支 -
git push origin feature/amazing-feature - 开启 Pull Request
代码规范
- 遵循 C# 编码规范
- 为所有公共 API 添加 XML 文档注释
许可证
本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。
联系方式
- GitHub Issues: 提交问题
- 邮箱: 1012201478@qq.com
- 微信公众号: ITuna
致谢
衷心感谢所有为这个项目做出贡献的开发者和用户。特别鸣谢:
- 所有提交代码的贡献者
- 提供宝贵反馈的用户
- Autodesk Revit API 社区
- 开源社区的支持与鼓励
Tuna.Revit.Toolkit - 让 Revit 开发更简单、更高效
| Product | Versions 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. |
-
.NETFramework 4.5.2
- Tuna.Runtime (>= 1.0.0.1)
-
.NETFramework 4.6
- Tuna.Runtime (>= 1.0.0.1)
-
.NETFramework 4.7
- Tuna.Runtime (>= 1.0.0.1)
-
.NETFramework 4.8
- Tuna.Runtime (>= 1.0.0.1)
-
net8.0-windows7.0
- Tuna.Runtime (>= 1.0.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.