【发布时间】:2018-05-09 23:26:35
【问题描述】:
现在我正在做一个项目,该项目应该从平面视图中获取房间名称,并将每个房间名称与数据库进行比较。如果在数据库中找到房间名称,则房间中名为“IS_IN_DATABASE”的参数应更新为“YES”
不幸的是,我不知道如何从一个平面视图中获取房间名称...
我发现了这个帖子:https://forums.autodesk.com/t5/revit-api-forum/how-to-retrieve-rooms-filtered-by-level/td-p/6627076
但它不起作用,因为我总是遇到异常:
viewId 不是视图。 参数名称:viewId
【问题讨论】:
-
如帖子所述:
You need to make sure the active view is not the project browser nor schedule nor draft... it is preferable to be a plan view.