Forge Design Automation超时求助:AutoCAD Core Console因超时关闭
AutoCAD Forge Design Automation超时错误排查与解决方案
使用AutoCAD版Forge Design Automation执行任务时,出现「AutoCAD Core Console is shutdown due to timeout」错误,任务最终执行失败,运行报告如下:
[03/10/2023 09:52:07] Start script phase. [03/10/2023 09:52:07] Start AutoCAD Core Engine standard output dump. [03/10/2023 09:52:07] Redirect stdout (file: T:\Aces\Jobs\8ab2b9c2e8c04c6f9e6401a760efc4c3\tmp\accc28282). [03/10/2023 09:52:07] AcCoreConsole: StdOutConsoleMode: processed-output: disabled,auto [03/10/2023 09:52:07] AutoCAD Core Engine Console - Copyright 2021 Autodesk, Inc. All rights reserved. (S.51.Z.120) [03/10/2023 09:52:07] Execution Path: [03/10/2023 09:52:07] T:\Aces\AcesRoot\24.1\coreEngine\Exe\accoreconsole.exe [03/10/2023 09:52:07] Current Directory: T:\Aces\Jobs\8ab2b9c2e8c04c6f9e6401a760efc4c3 [03/10/2023 09:52:07] Isolating to regkey=HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Autodesk\CoreUser\WorkItem_8ab2b9c2e8c04c6f9e6401a760efc4c3,userDataFolder=T:\Aces\Jobs\8ab2b9c2e8c04c6f9e6401a760efc4c3\userdata. [03/10/2023 09:52:07] Version Number: S.51.Z.120 (UNICODE) [03/10/2023 09:52:07] LogFilePath has been set to the working folder. [03/10/2023 09:52:08] Regenerating model. [03/10/2023 09:52:08] AutoCAD menu utilities loaded. [03/10/2023 09:52:08] Command: [03/10/2023 09:52:08] Command: [03/10/2023 09:52:08] Command: [03/10/2023 09:52:08] Command: DETECTIONCMD [03/10/2023 09:53:08] Error: AutoCAD Core Console is shutdown due to timeout. [03/10/2023 09:53:08] End script phase. [03/10/2023 09:53:08] Error: An unexpected error happened during phase CoreEngineExecution of job. [03/10/2023 09:53:08] Job finished with result FailedExecution
问题分析
从日志可见,执行DETECTIONCMD命令后刚好1分钟触发超时,核心原因包括:
DETECTIONCMD命令逻辑存在性能瓶颈,无法在默认超时窗口内完成执行- 命令可能陷入死循环、等待交互输入,或处理的CAD文件过于复杂/庞大
- 命令执行过程中出现未捕获异常,导致进程挂起无响应
解决方案
- 优化命令逻辑:检查
DETECTIONCMD是否存在冗余计算、死循环,拆分大任务为多个小步骤执行,降低单次计算负载 - 调整超时阈值:在Forge Design Automation工作项配置中,延长AutoCAD核心引擎的超时时间(需注意平台最大限制,合理设置)
- 预处理CAD文件:清理文件中无用对象、块、图层,简化复杂模型后再提交任务
- 增加日志输出:在
DETECTIONCMD中添加关键步骤的日志打印,定位具体卡顿环节 - 确保命令无交互:确认命令全程自动化,不存在等待用户输入的逻辑
内容的提问来源于stack exchange,提问作者RomCoca
相关产品推荐
相关产品推荐

