可以通过Design Automation API调用Import命令吗?

问题描述 投票:0回答:2

我正在尝试通过Design Automation API调用AutoCAD Import命令。这可以在本地accoreconsole.exe中正常工作,并且当Design Automation API接受导入命令而没有错误时,它将继续执行下一个命令而不导入任何内容。

在下面的Design Automation API输出日志的摘录中,我直接从生成的脚本文件和通过我的插件通过SendStringToExecute调用Import命令。在后一种情况下,我已经拉出了完整的本地文件路径。

[10/19/2017 06:20:18] Command: Import
[10/19/2017 06:20:18] Enter import file name: "input.stp"
[10/19/2017 06:20:18] Command: ProcessChamberDrawingCloud
[10/19/2017 06:20:19] Command: (command "Import" "\"T:\\Aces\\Jobs\\f4ba423419294f7eacf0d9fac71e790f\\input.stp\"")
[10/19/2017 06:20:19] Import
[10/19/2017 06:20:19] Enter import file name: "T:\Aces\Jobs\f4ba423419294f7eacf0d9fac71e790f\input.stp"
[10/19/2017 06:20:19] Command: _.quit
autodesk-forge
2个回答
© www.soinside.com 2019 - 2024. All rights reserved.