• Revit 二次开发 (二) 倾斜的板


      在Revit二次开发过程中,建立一个倾斜的板是可以通过如下方法进行的:

     1         //
     2         // 摘要:
     3         //     Creates a slab within the project with the given horizontal profile using
     4         //     the default floor style.
     5         //
     6         // 参数:
     7         //   profile:
     8         //     An array of planar lines and arcs that represent the horizontal profile of
     9         //     the slab.
    10         //
    11         //   level:
    12         //     The level on which the slab is to be placed.
    13         //
    14         //   slopedArrow:
    15         //     A line use to control the sloped angle of the slab. It should be in the same
    16         //     face with profile.
    17         //
    18         //   slope:
    19         //     The slope.
    20         //
    21         //   isStructural:
    22         //     If set, specifies that the floor is structural in nature.
    23         //
    24         // 返回结果:
    25         //     If successful a new floor object within the project, otherwise null.
    26         public Floor NewSlab(CurveArray profile, Level level, Line slopedArrow, double slope, bool isStructural);

      关键步骤:

      1、获得坡度slope:,角度可以通过计算板上表面与XY平面的夹角,亦即板上表面法向量和Z轴正向之间的夹角来获得。

      2、获得线slopedArrow:slopedArrow用以指定在XY平面上绘制的板轮廓,是沿着哪个方向进行坡度变化的。因此,这条线实际上是XY平面上,垂直于板上表面与XY平面交线的一条线。

         具体步骤待续。

    每多学一点知识,就少写一行代码
  • 相关阅读:
    Hugo搭建的博客删除文章事宜
    [GIT] Git学习笔记
    VS Code: 解决安装code-runner扩展run后无法在只读编辑器下编辑
    c/c++结构体总结
    恢复U盘做启动盘后的容量
    Manjaro安装Mysql
    win10环境下安装manjaro kde(双系统)
    IDEA设置编辑区主题
    IDEA设置主体、窗体及菜单的字体大小
    IDEA设置项目文件编码
  • 原文地址:https://www.cnblogs.com/loveclumsybaby/p/Revit.html
Copyright © 2020-2023  润新知