问题
I need to get room/area objects with the hierarchy of linked objects from the Revit model via Forge. Right now I am using this project as a starting point. Unfortunately, the room information is lost. As far as I understand, it is removed during the translation process. There are some workarounds like this one, but it doesn't seem to work for our case. Is there any straightforward way to retrieve room information from rvt in Forge?
回答1:
Although there is not directly way to get room information via the Forge translator, there are still some workarounds to archive this:
- Open Revit project with room elements only via the Navisworks, and upload to Forge for translation, use this result as the secondary model of your viewer app as well.
- Extract room info. and object relationships via Revit API, and use external mapping feature of the Forge Viewer to rebuild partial relationships between elements and rooms, if room geometry info. is not required.
Hope this help.
回答2:
Unfortunately room information is not exposed through the Forge translation at the moment. We have a change request pending about it because several developers have been asking this feature. It will be provided in the future but at the moment the best workaround is the link that you pointed out. Sorry for the bad news.
来源:https://stackoverflow.com/questions/44128417/obtaining-room-area-information-from-forge-api