Forge API - 检查翻译结果时缺少 IFC 衍生产品

Posted

技术标签:

【中文标题】Forge API - 检查翻译结果时缺少 IFC 衍生产品【英文标题】:Forge API -missing IFC derivatives when checking translation result 【发布时间】:2022-01-07 22:49:45 【问题描述】:

我正在尝试直接从 BIM360 翻译 revit 文件。 我发布了这样的工作:

            List<JobPayloadItem> outputs = new List<JobPayloadItem> 
                new (JobPayloadItem.TypeEnum.Ifc)
            ;
            string workFlowId = Guid.NewGuid().ToString();
            JobPayloadMisc misc = new JobPayloadMisc(workFlowId);
            JobPayloadDestination.RegionEnum destinationRegion = JobPayloadDestination.RegionEnum.US;
            JobPayloadDestination destination = new JobPayloadDestination(destinationRegion);
            JobPayload payload = new JobPayload(new JobPayloadInput(base64Urn), new JobPayloadOutput(outputs, destination), misc);
            
            m_api.Configuration.AccessToken = accessToken;
            DynamicJsonResponse response = await m_api.TranslateAsync(payload, true);

当我尝试使用安全骨灰盒检查结果时,我得到这样的回复:

   DynamicJsonResponse result = await m_api.GetManifestAsync(base64Urn);

响应中没有 IFC 衍生工作(我放 ***** 而不是一些私人信息)。 回复如下:

“瓮”:“*****”, “衍生物”: “0”: "hasThumbnail": "真", “覆盖输出类型”:“svf2”, “孩子们”: “0”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/model.sdb", “角色”:“Autodesk.CloudPlatform.PropertyDatabase”, “mime”:“应用程序/autodesk-db”, "guid": "6fac95cb-af5d-3e4f-b943-8a7f55847ff1", “类型”:“资源”, “状态”:“成功” , “1”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/AECModelData.json", “角色”:“Autodesk.AEC.ModelData”, "mime": "应用程序/json", “指导”:“a4aac952-a3f4-031c-4113-b2d9ac2d0de6”, “类型”:“资源”, “状态”:“成功” , “2”: "guid": "86dcdfb0-d97d-e3d7-3404-b53abf1678b1", "phaseNames": "新建工程", "hasThumbnail": "真", “角色”:“3d”, “名称”:“3D”, “进度”:“完成”, “类型”:“几何”, "viewableID": "92b5dec7-790a-45b0-a5e8-cd9f76058c3a-009a4098", “状态”:“成功”, “孩子们”: “0”: “指导”:“92b5dec7-790a-45b0-a5e8-cd9f76058c3a-009a4098”, “角色”:“3d”, “名称”:“3D”, “进度”:“完成”, “相机”: “0”:625.0464477539063, “1”:-563.9346313476563, “2”:833.3741455078125, “3”:96.7083740234375, “4”:-35.5965690612793, “5”:305.0361022949219, “6”:-0.40824830532073977, “7”:0.40824830532073977, “8”:0.8164966106414795, “9”:0.6307491064071655, “10”:0, “11”:1, “12”:1 , “类型”:“视图”, “状态”:“成功” , “1”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D.svf", “角色”:“图形”, “mime”:“应用程序/autodesk-svf”, “指导”:“fbec8b0f-58d6-2e86-30c8-211e4056efeb”, “类型”:“资源” , “2”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D1.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“c70aa596-d404-714f-6795-9276087c3800”, “类型”:“资源”, “解决”: “0”:100, “1”:100 , “状态”:“成功” , “3”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D2.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“6ef65d1a-4a59-111d-f1ec-4e543bd2712b”, “类型”:“资源”, “解决”: “0”:200, “1”:200 , “状态”:“成功” , “4”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D4.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“2c06739e-5164-4f6d-450e-c8833fd2a2ba”, “类型”:“资源”, “解决”: “0”:400, “1”:400 , “状态”:“成功” , “3”: “isMasterView”:是的, "phaseNames": "新建工程", "hasThumbnail": "真", “角色”:“3d”, “孩子们”: “0”: “指导”:“c884ae1b-61e7-4f9d-0001-719e20b22d0b-009a40af”, “角色”:“3d”, "name": "新建筑", “进度”:“完成”, “相机”: “0”:594.0901489257813, “1”:-500.6220397949219, “2”:819.0045166015625, “3”:95.86978149414063, “4”:-2.4016761779785158, “5”:320.78411865234377, “6”:-0.40824830532073977, “7”:0.40824830532073977, “8”:0.8164966106414795, “9”:0.3480738401412964, “10”:0, “11”:1, “12”:1 , “类型”:“视图”, “状态”:“成功” , “1”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction.svf", “角色”:“图形”, “mime”:“应用程序/autodesk-svf”, "guid": "3572dadf-f7d8-cf8b-a625-967f27309e85", “类型”:“资源” , “2”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction1.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“a3c19573-8948-7ae0-fb5c-75cab1d0e87a”, “类型”:“资源”, “解决”: “0”:100, “1”:100 , “状态”:“成功” , “3”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction2.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“86d53dd2-82c8-1948-5997-00ebf6078ed7”, “类型”:“资源”, “解决”: “0”:200, “1”:200 , “状态”:“成功” , “4”: "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction4.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“7e36c074-8997-d941-4dc3-6a72fcdf3b9b”, “类型”:“资源”, “解决”: “0”:400, “1”:400 , “状态”:“成功” , "name": "新建筑", “指导”:“4b621e7d-f520-422b-95fd-645b8690168a”, “进度”:“完成”, “类型”:“几何”, "viewableID": "c884ae1b-61e7-4f9d-0001-719e20b22d0b-009a40af", “状态”:“成功” , “名称”:“*****.rvt”, “进度”:“完成”, “消息”: “0”: “类型”:“警告”, "code": "Revit-MissingLink", “信息”: "0": "缺少链接文件: 0", “1”:“08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. ***** .dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg , 08.12.2019. *****.dwg, 08.12.2019. *****.dwg" , “输出类型”:“svf”, “状态”:“成功” , “1”: “孩子们”: “0”: "urn": "urn:adsk.viewing:fs.file:*****/output/preview1.png", “角色”:“缩略图”, "mime": "图像/png", "guid": "db899ab5-939f-e250-d79d-2d1637ce4565", “类型”:“资源”, “解决”: “0”:100, “1”:100 , “状态”:“成功” , “1”: "urn": "urn:adsk.viewing:fs.file:*****/output/preview2.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“3f6c118d-f551-7bf0-03c9-8548d26c9772”, “类型”:“资源”, “解决”: “0”:200, “1”:200 , “状态”:“成功” , “2”: "urn": "urn:adsk.viewing:fs.file:*****/output/preview4.png", “角色”:“缩略图”, "mime": "图像/png", “指导”:“4e751806-0920-ce32-e9fd-47c3cec21536”, “类型”:“资源”, “解决”: “0”:400, “1”:400 , “状态”:“成功” , “进度”:“完成”, “输出类型”:“缩略图”, “状态”:“成功” , "hasThumbnail": "真", “消息”: “0”: “类型”:“警告”, "code": "Revit-MissingLink", “信息”: "0": "缺少链接文件:0", “1”:“08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. ***** .dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg, 08.12.2019. *****.dwg , 08.12.2019. *****.dwg, 08.12.2019. *****.dwg" , "progress": "99% 完成", “类型”:“清单”, “地区”:“美国”, “版本”:“1.0”, “状态”:“进行中”

我做错了什么?

【问题讨论】:

【参考方案1】:

当您请求 IFC 翻译时,您应该会收到 IFC 翻译请求已被接受(成功)的响应。稍后,当您请求清单时,在完全处理之前,您将看不到 IFC 输出。在您的示例中,您会看到 SVF2 输出,因为对于 RVT 文件,此输出在 BIM360 上是必需的。当 IFC 文件准备好时,将出现 IFC 条目。既然你之前请求过 IFC,请再次请求清单,它现在应该在那里。如果没有,请通过 autodesk.com 上的 forge.help 联系我们并分享失败的 URN,我们将查看日志以隔离问题。

【讨论】:

以上是关于Forge API - 检查翻译结果时缺少 IFC 衍生产品的主要内容,如果未能解决你的问题,请参考以下文章

IFC 从 Cadwork Lexocad 到 Forge - 多个 PropertySets 和属性

是否可以在 Forge Viewer 中调用 IFC 类型的DESCRIPTION 值?

创建 Autodesk forge 应用程序时缺少 API

通过 Autodesk Forge Model Derivative 翻译后缺少属性字段

锻造设计自动化:缺少输出文件

如何使 Forge Data Visualization 扩展与 IFC 文件一起使用?