2017-10-09 54 views
1

我正在使用autodesk Design Automation API將DGW轉換爲PDF。在作業輸出文件中我得到這個:Autodesk Forge WorkItem API:錯誤:缺少輸出[result.pdf]

[10/09/2017 03:01:35] Command: -export Enter file format [Dwf/dwfX/Pdf] <dwfX>_pdf Enter plot area [Current layout/All layouts]<Current Layout>: _all 
 
[10/09/2017 03:01:35] Enter file name <visualization_condominium_with_skylight-Layout1.pdf>: result.pdf 
 
[10/09/2017 03:01:35] There were no plottable sheets in the current operation. 
 
[10/09/2017 03:01:35] Command: _.quit 
 
[10/09/2017 03:01:35] Process exit code: 0 
 
[10/09/2017 03:01:35] End AutoCAD Core Console output 
 
[10/09/2017 03:01:35] End script phase. 
 
[10/09/2017 03:01:35] Start upload phase. 
 
[10/09/2017 03:01:35] Error: Output is missing [result.pdf]. 
 
[10/09/2017 03:01:35] Error: An unexpected error happened during phase Publishing of job.

我試過兩個不同的DWG文件(歐特克樣品都下載)無濟於事。

這裏是鏈接到DWG File

回答

0

作爲這種線表示,在該圖不具有plottable片。這通常是因爲此繪圖尚未用任何工作表(紙張)激活,而Design Automation的默認PDF導出腳本適用於工作表(紙張),而不是模型空間。注意:導出爲PDF的命令行在「模型空間」和「紙張空間」中有所不同。所以,您可以簡單地激活一張紙並再次將其上傳到網絡驅動程序。或者,您可以創建自己的活動來爲模型空間導出PDF,並調用WorkItem中的腳本。

在當前操作中沒有繪圖表。

如果您仍有問題,請提供一個小樣本圖紙(刪除保密信息後)。

+0

嗨,梁,仍然面臨的問題,我不是AutoCAD的精明。這裏是[鏈接](https://www.dropbox.com/s/kbpbuwpknuh6ukn/Bottom_plate.dwg?dl=00)到DWG –

+0

拿回來 - 得到它全部運作出來 –

+0

嗨@TarikMakota,對不起,我不是能夠立即迴應。我可以知道你是如何解決這個問題的?按照我所說的激活一張紙(紙)之後,或者? –