首页 > 解决方案 > 在 Forge 中创建活动时出错 [严重]

问题描述

从 2 天开始创建活动时我遇到了错误。我们没有对程序进行任何更改,并且已经将其部署在生产机器中,它可以在 3-4 个月内正常工作。还尝试在我的机器上运行相同的程序,但同样的错误即将到来。

请帮我解决这个问题,因为它很关键(目前正在与 Forge 订阅一起用于生产)......

日志中的错误如下所示,供您参考。

03-10-2020 11:44:14:    Checking if activity DGActivity1 exists...
03-10-2020 11:44:14:    Creating new version for activity DGActivity1...
03-10-2020 11:44:14:    Error reported: Exception creating activity version.
03-10-2020 11:44:14:    Response status: BadRequest
03-10-2020 11:44:14:    Response details: {"commandLine":["Invalid switch [$(appbundles[DGApplication1].path)]. Variables that expand to paths must be quoted. (Parameter 'commandLine')"]}

标签: autodesk-forgeautodeskautodesk-designautomation

解决方案


从 10 月 1 日开始,活动定义需要引用参数和 appbundles 路径变量,如响应详细信息中所述。5个月前发布了公告。请参考此链接

如果您的旧命令行是这样定义的

$(engine.path)\InventorCoreConsole.exe /i $(args[InventorDoc].path) /al $(appbundles[SomeApp].path) /s $(settings[script].path) 

您可以使用以下方法修复它:

$(engine.path)\InventorCoreConsole.exe /i "$(args[InventorDoc].path)" /al "$(appbundles[SomeApp].path)" /s $(settings[script].path)

推荐阅读