Attribute names for NWD files in Autodesk Forge viewer different from source Revit file

夙愿已清 提交于 2021-01-29 12:30:31

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/58394560/attribute-names-for-nwd-files-in-autodesk-forge-viewer-different-from-source-rev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!