查看了一下相关资料,手动创建面积平面的时候会弹出交互式的处理窗口询问是否自动创建面积边界线,而在代码中直接创建的时候就直接完成了面积平面视图的创建,这个可能需要进一步在代码中遍历墙体去判断外墙,再用api去生成边界轮廓AreaBoundaryLine才行
希望对你有所帮助
CONG XU
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。
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.
@bandit_huangpf 您好!不知道以上 @naveen.kumar.t 的回复是否对您也有帮助呢?您对他的解答有什么疑问吗?
