1

通过 IFC 文件调用 https://developer.api.autodesk.com/modelderivative/v2/designdata/ {urn}/metadata/{guid}/properties 时,响应包含错误信息。它不是返回属性名称,而是返回它的类型。例子

"properties": {
          "Item": {
            "LcOaNode:LcOaNodeGuid": "c13f6c25-d776-584a-8b84-c7132760a018",
            "LcOaNode:LcOaNodeHidden": 0,
            "LcOaNode:LcOaNodeIcon": "File",
            "LcOaNode:LcOaNodeMaterial": "",
            "LcOaNode:LcOaNodeRequired": 0,
            "LcOaNode:LcOaSceneBaseClassUserName": "File",
            "LcOaNode:LcOaSceneBaseUserName": "3d337589-4cea-4301-a236-4b39c1e15ac9.Ifc",
            "LcOaNode:LcOaUnit": "Millimeters"
          },
          "Material": {
            "LcOaExMaterial:LcOaMaterialAmbient0": 1,
            "LcOaExMaterial:LcOaMaterialAmbient1": 1,
            "LcOaExMaterial:LcOaMaterialAmbient2": 1,
            "LcOaExMaterial:LcOaMaterialDiffuse0": 1,
            "LcOaExMaterial:LcOaMaterialDiffuse1": 1,
            "LcOaExMaterial:LcOaMaterialDiffuse2": 1,
            "LcOaExMaterial:LcOaMaterialEmissive0": 0,
            "LcOaExMaterial:LcOaMaterialEmissive1": 0,
            "LcOaExMaterial:LcOaMaterialEmissive2": 0,
            "LcOaExMaterial:LcOaMaterialShininess": 0.00001,
            "LcOaExMaterial:LcOaMaterialSpecular0": 0,
            "LcOaExMaterial:LcOaMaterialSpecular1": 0,
            "LcOaExMaterial:LcOaMaterialSpecular2": 0,
            "LcOaExMaterial:LcOaMaterialTransparency": 0
          }, ....

例如,在返回“LcOaExMaterial:LcOaMaterialAmbient0”的地方,它应该是属性的名称。

4

1 回答 1

0

IFC 文件是通过 Navisworks 提取的,这是预期的行为。对于给定的属性,您可以使用 displayName(如果可用)。

于 2017-01-20T18:15:07.653 回答