简体   繁体   English

在 Forge 查看器中获取关卡的 Revit 空间信息

[英]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 关于这个。

  1. Using the 'Properties' button on the menu tab in the Forge viewer使用 Forge 查看器中菜单选项卡上的“属性”按钮
  • You just need to select your element and click the properties button which will display the metadata for the specific selected element.您只需要 select 您的元素,然后单击将显示特定选定元素的元数据的属性按钮。

伪造查看器属性按钮

  1. You can use the NOP_VIEWER object on your browser's console.您可以在浏览器的控制台上使用NOP_VIEWER object。
  • 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM