【问题标题】:Error while creating the activity in Forge [Critical]在 Forge 中创建活动时出错 [严重]
【发布时间】:2021-01-18 19:27:45
【问题描述】:

我在创建 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-forge autodesk autodesk-designautomation


    【解决方案1】:

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

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

    $(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)
    

    【讨论】:

    • 好的,谢谢!我们交叉检查了 post activity HTTP API Reference 并根据它立即更新。
    猜你喜欢
    • 2020-08-20
    • 2020-09-20
    • 1970-01-01
    • 1970-01-01
    • 2021-11-25
    • 1970-01-01
    • 2015-02-06
    • 2017-03-14
    • 1970-01-01
    相关资源
    最近更新 更多