autodesk-forge - 在 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')"]}
解决方案
从 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)
推荐阅读
- spring - Spring - 无法通过嵌套的通用接口类型找到 bean
- python - Azure Web App:在 HTTPS 请求上重置连接并关联文件
- python - FastAPI,Pytest TypeError:对象字典不能用于“等待”表达式
- html - 如何通过为暗模式设计的 CSS 有效地使用 KSS?
- java - 在java中使用链表实现堆栈
- python - 巧妙地改变一个自定义的 resnet 18 架构,仍然在预训练模式下使用它
- excel - 两列的Excel通配符If语句?
- java - 解决循环 IndexOutOfBoundsException 的最佳方法?
- node.js - 如何在 Node.js 的子进程中运行函数
- node.js - Can't connect front-end (vue) to API (nodeJS), using nginx, EC2 AWS 20.04 Ubuntu [SOLVED]