• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
梧桐爱凤
博客园    首页    新随笔    联系   管理    订阅  订阅

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

Floor NewSlab(CurveArray profile, Level level, Line slopedArrow, double slope, bool isStructural); 坡度 线

  在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平面交线的一条线。

     具体步骤待续。

每多学一点知识,就少写一行代码
posted @ 2013-07-02 10:01  梧桐爱凤  阅读(1184)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3