我想在使用 Design Automation API 创建活动和将 DWG 文件转换为 PDF 时应用 ctb。
在PlotToPDF活动中,脚本如下
"Instruction": {
"CommandLineParameters": "-suppressGraphics",
"Script": "_layoutcreateviewport 1 _tilemode 0 -export _pdf _all result.pdf\n"
}
如果要应用 CTB 文件并将其转换为 PDF,脚本是 How should I write ?
Autodesk Design Automation API 定义绘图设置,例如灰度/线宽
我尝试了此处编写的脚本,但出现错误。
[04/19/2019 00:40:15] Command: -PLOT Detailed plot configuration? [Yes/No] <No>: Y
[04/19/2019 00:40:15] Enter a layout name or [?] <レイアウト1>: Enter an output device name or [?] <なし>: AutoCAD PDF (General Documentation).pc3 Y myCTB.ctb
[04/19/2019 00:40:15] <AutoCAD PDF (General Documentation).pc3 Y myCTB.ctb > not found.
[04/19/2019 00:41:15] Error: AutoCAD Core Console is shut down due to timeout.
[04/19/2019 00:41:15] End script phase. [04/19/2019 00:41:15] Error: An unexpected error happened during phase CoreEngineExecution of job.
我将命令调整如下。
-PLOT Y AutoCAD PDF (General Documentation).pc3\n\n\n Y\n\n\n\nY myCTB.ctb\n
结果是一个错误。
[04/19/2019 01:09:45] Command: -PLOT Detailed plot configuration? [Yes/No] <No>: Y
[04/19/2019 01:09:45] Enter a layout name or [?] <レイアウト1>: Enter an output device name or [?] <なし>: AutoCAD PDF (General Documentation).pc3
[04/19/2019 01:09:45] Enter paper size or [?] <ANSI A (11.00 x 8.50 Inches)>:
[04/19/2019 01:09:45] Enter paper units [Inches/Millimeters] <Millimeters>:
[04/19/2019 01:09:45] Enter drawing orientation [Portrait/Landscape] <Portrait>: Plot upside down? [Yes/No] <No>: Y
[04/19/2019 01:09:45] Enter plot area [Display/Extents/Layout/View/Window] <Layout>:
[04/19/2019 01:09:45] Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] <1:1>:
[04/19/2019 01:09:45] Enter plot offset (x,y) <0.00,0.00>:
[04/19/2019 01:09:45] Plot with plot styles? [Yes/No] <No>: Y Enter plot style table name or [?] (enter . for none) <>: myCTB.ctb
[04/19/2019 01:10:46] Error: AutoCAD Core Console is shut down due to timeout. [04/19/2019 01:10:47] End script phase.
[04/19/2019 01:10:47] Error: An unexpected error happened during phase CoreEngineExecution of job.