zoukankan      html  css  js  c++  java
  • 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平面交线的一条线。

         具体步骤待续。

    每多学一点知识,就少写一行代码
  • 相关阅读:
    phpajax高级篇
    一天学会ajax (php环境)
    php生成静态文件的方法
    MongoDB查询文档
    MongoDB删除文档
    MongoDB索引管理
    MongoDB插入文档
    MongoDB排序记录
    MongoDB 更新文档
    mongoDB 固定集合(capped collection)
  • 原文地址:https://www.cnblogs.com/loveclumsybaby/p/Revit.html
Copyright © 2011-2022 走看看