我正在尝试浏览建筑物的所有房间(或实际上所有空间),以便为每个获取相邻空间的列表空间。我已经阅读了一些关于它here和here的相当古老的帖子,但这些帖子使用了BoundarySegment对象的“Element”属性,例如:
pip install tensorflow
如果我没弄错的话,这就不再可能从BoundarySegment访问墙对象了(?)还有替代方案吗?
谢谢,
阿诺。
答案 0 :(得分:1)
搜索BoundarySegment类。
我收到消息:“2017年|资源不适用于活动API年...资源仅适用于2015年”。
了解Revit 2017 API中的新功能:
http://thebuildingcoder.typepad.com/blog/2016/04/whats-new-in-the-revit-2017-api.html
过时的API删除列表Autodesk.Revit.DB.BoundarySegment.Element。
您在上面提到的两个帖子是:
http://thebuildingcoder.typepad.com/blog/2013/09/room-neighbours.html
http://thebuildingcoder.typepad.com/blog/2009/01/room-and-wall-adjacency.html
两者中提供的所有代码都包含在Building Coder样本中:
https://github.com/jeremytammik/the_building_coder_samples
Building Coder示例在GitHub上维护,并在它们出现时迁移到Revit API的新版本。因此,您可以在GitHub上看到如何在Revit 2017中实现相同的功能: