I am working on automating the process of converting DWG files to PDF using AutoCAD. However, I am encountering some issues when executing the script. I would like to request your help regarding the following problems. Issue: In the AutoCAD script (.scr), even though I set the Portrait orientation, the output is being changed to Fit.
Script File: This issue arises when using an AutoCAD script in the .scr format.
Script:
-PLOT / No / Model / DWG To PDF.pc3 / ISO_full_bleed_A3_(420.00_x_297.00_MM) / Millimeters / Portrait / Scale to Fit / Y / QUIT
Error Message: Below is the error message received from the Design Automation API, specifically during the final phase (WorkItems) via the reportURL. The message shows the C command error and the orientation being set to Fit instead of Portrait.
Command: -PLOT Detailed plot configuration? [Yes/No] : Y ... Enter paper size or [?] <ANSI A (11.00 x 8.50 Inches)>: ISO_full_bleed_A3_(420.00_x_297.00_MM) Enter paper units [Inches/Millimeters] : M Enter drawing orientation [Portrait/Landscape] : Fit Command: C Unknown command "C". Press F1 for help. End AutoCAD Core Engine standard output dump. Error: AutoCAD Core Console output contains error(s).
Analysis: It seems that the issue arises from the C command error and the orientation being set to Fit instead of Portrait, which suggests there might be an issue with the script.
Requests: Could you confirm if there is a way to resolve the issue where Portrait orientation is being changed to Fit in the AutoCAD script (.scr)?
Please advise on why the C command error occurs and how to resolve it.
Are there any additional settings required in the AutoCAD script (.scr) to maintain the Portrait orientation correctly?
For your reference, I am using NestJS to convert the DWG file to PDF. Any additional help would be appreciated.
Thank you.
