Autodesk Forge Viewer中NWD文件的属性名称与源Revit文件不同 [英] Attribute names for NWD files in Autodesk Forge viewer different from source Revit file

查看:94
本文介绍了Autodesk Forge Viewer中NWD文件的属性名称与源Revit文件不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用从NWD文件转换而来的模型中的一些参数在Forge查看器中搜索元素时,我发现属性名称与源Revit文件不同.例如,在源Revit文件中有一个名为程序集名称"的参数,但是在从NWD文件转换而来的模型中,此名称已更改为"LcRevitData_Element:lcldrevit_parameter_-1150420".

当我执行一个viewer.getProperties()时,我发现了这一点,并看到了"Assembly Name"参数:

displayName =程序集名称"

attributeName ="LcRevitData_Element:lcldrevit_parameter_-1150420"

但是viewer.search()函数使用attributeName在模型中执行搜索.我具有基于几个不同参数搜索模型的函数,因此我已对这些attributeNames进行了硬编码以进行搜索.但是,如果有修订的NWD,而我需要再次将其上载到Forge,这些attributeNames是否会更改?它们看起来像是一些随机生成的字符串...还是有其他方法可以使用实际的参数名称进行搜索?

非常感谢您的帮助!

解决方案

该模型中的所有数据提取器应保持相同,并且对原始模型具有真实性,只要更新不会更改它们即可.让我们知道它们是否发生了意外更改,并将原始模型和相关详细信息发送给我们,以在autodesk.com上进行伪造.

这是我们的服务生成的元数据/标识符,用于查看器和其他堆栈,这些堆栈每次重新转换模型时都会更改,其中包括dbid(节点ID)等.

When I search elements in the Forge viewer using a few parameters in the model that was translated from an NWD file, I find that the attribute names are different from the source Revit file. For example, there is a parameter called "Assembly Name" in the source Revit file, but this name is changed to "LcRevitData_Element:lcldrevit_parameter_-1150420" in the model that was translated from the NWD file.

I found this out when I did a viewer.getProperties() and saw that for the "Assembly Name" parameter:

displayName = "Assembly Name"

attributeName = "LcRevitData_Element:lcldrevit_parameter_-1150420"

But the viewer.search() function uses the attributeName to perform the search in the model. I have functions that search the model based on a few different parameters, so I have hardcoded these attributeNames to do the search. But if there is a revised NWD and I need to upload it again to Forge, will these attributeNames change? They look like some randomly generated string... Or is there some other method that can use the actual parameter name to do a search?

Thanks a lot for any help!

解决方案

All data extractor from the model should remain the same and authentic to the original model so long as the updates do not change them. Let us know if they change unexpectedly and send us the original model and relevant details to forge.help at autodesk.com.

It's the meta data/identifiers that are generated by our service for use of Viewer and other stacks that change each time the model is translated again and those include dbid(node ID) etc.

这篇关于Autodesk Forge Viewer中NWD文件的属性名称与源Revit文件不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆