I want to apply ctb when creating activities and converting DWG files to PDF using Design Automation API.
In the PlotToPDF activity, the script was as follows
"Instruction": {
"CommandLineParameters": "-suppressGraphics",
"Script": "_layoutcreateviewport 1 _tilemode 0 -export _pdf _all result.pdf\n"
}
If want to apply a CTB file and convert it to PDF, the script is How should I write ?
Autodesk Design Automation API define Plot Settings e.g. greyscale/linewidth
I tried the script written here but got an error.
[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.
I adjusted the command as follows.
-PLOT Y AutoCAD PDF (General Documentation).pc3\n\n\n Y\n\n\n\nY myCTB.ctb\n
The result is an error.
[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.