[英]Get Revit space information of a level in Forge viewer
I'm trying to get space information (name, position, level, height) with forge viewer.我正在尝试使用伪造查看器获取空间信息(名称、position、水平、高度)。
I have tried translating the Revit file with the "Generate Master Views" setting.我尝试使用“生成主视图”设置翻译 Revit 文件。 With some Revit models, I can get space information, but some do not.
对于某些 Revit 模型,我可以获得空间信息,但有些则不能。 I wonder do I need to do sth with my Revit file.
我想知道我是否需要对我的 Revit 文件做某事。
Are you trying to find the properties of a selected element on your Revit model?您是否尝试在 Revit model 上查找选定元素的属性?
If so, there are two ways you can go about this.如果是这样,有两种方法可以 go 关于这个。
You first need to select your element, then on your console type the following:您首先需要 select 您的元素,然后在您的控制台上键入以下内容:
NOP_VIEWER.getSelection() NOP_VIEWER.getSelection()
NOP_VIEWER.getProperties(modelNo, console.log, console.error) NOP_VIEWER.getProperties(modelNo,console.log,console.error)
This will display all the metadata of the selected model.这将显示所选 model 的所有元数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.