Skip to content
@DeepSeaAreas

深海计划

Deep Sea Areas

🙋‍♀️介绍

第一阶段主要以Revit作为开发对象,对Revit的API进行扩展,增加Revit开发普适性框架,增加UI控件库(WPF)

代码仓库

Revit Wrapper

  • 几何算法
  • 视图帮助
  • 事务管理
  • 事件管理
  • 数据查询
  • 数据持久化
  • GUI绘图

Revit Framework

  • MVVM模板
  • WPF UI Control
  • 单元测试
  • 帮助文档
  • 日志
  • 异常捕捉

Revit UI Control

Revit Lab WebView

🌈指南

编码标准

标准说明

  • Revit API 扩展 项目所有方法封装以扩展形式体现
  • 扩展方法均应以中文进行代码块注释说明(详参考案例1)
  • 扩展方法宜添加Code段进行使用使用(本条不作强制要求,各自判断,详参考案例2)
  • API管理文档能通过 Sandcastle Help File Builder

命名规范

  • 扩展类命名后缀加*Extension.cs
  • 特征类命名后缀加*Attribute.cs
  • 帮助类命名后缀加*Helper.cs
  • 其他参考微软编码命名标准

案例1

/// <summary>
/// 将公制数值转换为英制数值
/// </summary>
/// <param name="number">要转换的公制数值</param>
/// <returns>英制数值结果</returns>
public static double ConvertToFeet(this double number)
{
     return //do someting;
}

案例2

/// <summary>
/// 为当前文档I/O行为开启一个事务
/// <code>
/// 
/// document.NewTransaction(()=>
/// {
///     //do sometion...
/// })
/// 
/// </code>
/// </summary>
/// <param name="document">要操作的文档</param>
/// <param name="action">事务内容</param>
/// <param name="name">事务名称</param>
public static void NewTransaction(this Document document, Action action = null, string name = "Default Transaction Name")
{
    using Transaction ts = new Transaction(document, name);
    ts.Start();
    action?.Invoke();
    ts.Commit();
}

🍿加入我们

deepseaareas

Pinned Loading

  1. RevitApiWrapper RevitApiWrapper Public

    a library based on Revit API

    C# 7 10

  2. UIControl UIControl Public

    WPF UI Control

  3. Lab.WebView Lab.WebView Public

    Web View UI Control Of Revit

    C# 1

  4. Framework Framework Public

    MVVM Framework of Revit

Repositories

Showing 7 of 7 repositories
  • Tuna.Revit.Extensions Public Forked from shichuyibushishiwu/Tuna.Revit.Extensions

    Revit Api Extension

    DeepSeaAreas/Tuna.Revit.Extensions’s past year of commit activity
    C# 1 MIT 16 0 0 Updated Mar 8, 2024
  • Dynamo Public Forked from DynamoDS/Dynamo

    Open Source Graphical Programming for Design

    DeepSeaAreas/Dynamo’s past year of commit activity
    C# 0 646 0 0 Updated Nov 23, 2022
  • .github Public
    DeepSeaAreas/.github’s past year of commit activity
    0 0 0 0 Updated Aug 12, 2022
  • Framework Public

    MVVM Framework of Revit

    DeepSeaAreas/Framework’s past year of commit activity
    0 Apache-2.0 0 0 0 Updated Aug 4, 2022
  • RevitApiWrapper Public

    a library based on Revit API

    DeepSeaAreas/RevitApiWrapper’s past year of commit activity
    C# 7 Apache-2.0 10 0 1 Updated Jul 14, 2022
  • Lab.WebView Public

    Web View UI Control Of Revit

    DeepSeaAreas/Lab.WebView’s past year of commit activity
    C# 0 Apache-2.0 1 0 0 Updated Jul 8, 2022
  • UIControl Public

    WPF UI Control

    DeepSeaAreas/UIControl’s past year of commit activity
    0 Apache-2.0 0 1 0 Updated Jul 6, 2022

Top languages

Loading…

Most used topics

Loading…