[英]Convert Specific Revit View to IFC Using Forge Model Derivatives
[英]Forge API -missing IFC derivatives when checking translation result
我正在嘗試直接從 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 衍生工作(我放 ***** 而不是一些私人信息)。
這是回應:
{ "urn": "*****", "derivatives": { "0": { "hasThumbnail": "true", "overrideOutputType": "svf2", "children": { "0": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/model.sdb", "role": "Autodesk.CloudPlatform.PropertyDatabase", "mime": "application/autodesk-db", "guid": "6fac95cb-af5d-3e4f-b943-8a7f55847ff1", "type": "resource", "status": "success" }, "1": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/AECModelData.json", "role": "Autodesk.AEC.ModelData", "mime": "application/json", "guid": "a4aac952-a3f4-031c-4113-b2d9ac2d0de6", "type": "resource", "status": "success" }, "2": { "guid": "86dcdfb0-d97d-e3d7-3404-b53abf1678b1", "phaseNames": "New Construction", "hasThumbnail": "true", "role": "3d", "name": "3D", "progress": "complete", "type": "geometry", "viewableID": "92b5dec7-790a-45b0-a5e8-cd9f76058c3a-009a4098", "status": "success", "children": { "0": { "guid": "92b5dec7-790a-45b0-a5e8-cd9f76058c3a-009a4098", "role": "3d", "name": "3D", "progress": "complete", "camera": { "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 }, "type": "view", "status": "success" }, "1": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D.svf", "role": "graphics", "mime": "application/autodesk-svf", "guid": "fbec8b0f-58d6-2e86-30c8-211e4056efeb", "type": "resource" }, "2": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D1.png", "role": "thumbnail", "mime": "image/png", "guid": "c70aa596-d404-714f-6795-9276087c3800", "type": "resource", "resolution": { "0": 100, "1": 100 }, "status": "success" }, "3": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D2.png", "role": "thumbnail", "mime": "image/png", "guid": "6ef65d1a-4a59-111d-f1ec-4e543bd2712b", "type": "resource", "resolution": { "0": 200, "1": 200 }, "status": "success" }, "4": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/3D/3D4.png", "role": "thumbnail", "mime": "image/png", "guid": "2c06739e-5164-4f6d-450e-c8833fd2a2ba", "type": "resource", "resolution": { "0": 400, "1": 400 }, "status": "success" } } }, "3": { "isMasterView": true, "phaseNames": "New Construction", "hasThumbnail": "true", "role": "3d", "children": { "0": { "guid": "c884ae1b-61e7-4f9d-0001-719e20b22d0b-009a40af", "role": "3d", "name": "New Construction", "progress": "complete", "camera": { "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 }, "type": "view", "status": "success" }, "1": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction.svf", "role": "graphics", "mime": "application/autodesk-svf", "guid": "3572dadf-f7d8-cf8b-a625-967f27309e85", "type": "resource" }, "2": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction1.png", "role": "thumbnail", "mime": "image/png", "guid": "a3c19573-8948-7ae0-fb5c-75cab1d0e87a", "type": "resource", "resolution": { "0": 100, "1": 100 }, "status": "success" }, "3": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction2.png", "role": "thumbnail", "mime": "image/png", "guid": "86d53dd2-82c8-1948-5997-00ebf6078ed7", "type": "resource", "resolution": { "0": 200, "1": 200 }, "status": "success" }, "4": { "urn": "urn:adsk.viewing:fs.file:*****/output/Resource/3D View/*****/New Construction/New Construction4.png", "role": "thumbnail", "mime": "image/png", "guid": "7e36c074-8997-d941-4dc3-6a72fcdf3b9b", "type": "resource", "resolution": { "0": 400, "1": 400 }, "status": "success" } }, "name": "New Construction", "guid": "4b621e7d-f520-422b-95fd-645b8690168a", "progress": "complete", "type": "geometry", "viewableID": "c884ae1b-61e7-4f9d-0001-719e20b22d0b-009a40af", "status": "success" } }, "name": "*****.rvt", "progress": "complete", "messages": { "0": { "type": "warning", "code": "Revit-MissingLink", "message": { "0": "Missing link files:
我究竟做錯了什么?
當您請求 IFC 翻譯時,您應該得到 IFC 翻譯請求已被接受(成功)的響應。 稍后當您請求清單時,您將不會看到 IFC output,直到它被完全處理。 在您的示例中,您會看到 SVF2 output,因為對於 RVT 文件,這在 BIM360 上是強制性的。 當 IFC 文件准備好時,將出現 IFC 條目。 既然您之前請求過 IFC,請再次請求清單,它現在應該在那里。 如果沒有,請通過 autodesk.com 的 forge.help 聯系我們,並分享失敗的 URN,我們將查看日志以隔離問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.