社区
Revit,Navisworks建筑施工BIM讨论区
欢迎访问欧特克Revit, Navisworks论坛!分享知识,发帖提问,浏览论坛热帖。
取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

代码创建面积平面(总建筑面积)

6 条回复6
已解决
回复
1 条消息(共 7 条)
bandit_huangpf
493 次查看, 6 条回复

代码创建面积平面(总建筑面积)

请问代码创建创建面积平面(总建筑面积)视图,为什么不会像原生操作一样生成面积与面积边界线?

捕获.PNG

6 条回复6
2 条消息(共 7 条)

查看了一下相关资料,手动创建面积平面的时候会弹出交互式的处理窗口询问是否自动创建面积边界线,而在代码中直接创建的时候就直接完成了面积平面视图的创建,这个可能需要进一步在代码中遍历墙体去判断外墙,再用api去生成边界轮廓AreaBoundaryLine才行

希望对你有所帮助

CONG XU
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。

EESignature


- BIM THE FUTURE - 
3 条消息(共 7 条)

好的,多谢大佬指点

4 条消息(共 7 条)

好的,多谢大佬指点
5 条消息(共 7 条)

Hi @bandit_huangpf ,

 

When you create an area plan in Revit’s UI, it prompts you to generate boundary lines, but this doesn’t happen automatically through the API. To replicate the boundary creation programmatically, you’ll need to iterate through building elements (typically walls) to identify the exterior boundaries and generate boundary lines using doc.Create.NewAreaBoundaryLine()

A good starting point is using the BuildingEnvelopeAnalyzer class, which helps identify the building’s exterior elements. Then, filter these elements by category (e.g., walls) and offset the location curves as needed to get the inner, outer, center, core, or other required location for the area boundary.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

6 条消息(共 7 条)

@bandit_huangpf 您好!不知道以上 @naveen.kumar.t 的回复是否对您也有帮助呢?您对他的解答有什么疑问吗?





Lynn Zhang
Community Manager


7 条消息(共 7 条)

Thanks a lot

找不到想要的内容?向社区提问或分享您的知识。

到论坛发帖  

”