You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Autodesk Design Automation创建Activity时命令行路径变量报错求助

解决Design Automation创建Activity时的命令行路径引号错误

问题根源是命令行中的路径变量未被引号包裹,根据报错提示,所有会展开为路径的变量必须用双引号括起来。

修改后的请求体如下,重点修正commandLine字段:

{
    "id": "{{activityName}}",
    "commandLine": [ "$(engine.path)\\\\revitcoreconsole.exe /i \"$(args[rvtFile].path)\" /al \"$(appbundles[{{appBudleName}}].path)\"" ],
    "parameters": {
      "rvtFile": {
        "zip": false,
        "ondemand": false,
        "verb": "get",
        "description": "Input Revit model",
        "required": true
      },
      "result": {
        "zip": false,
        "ondemand": false,
        "verb": "put",
        "description": "Results",
        "required": true,
        "localName": "result.rvt"
      }
    },
    "engine": "Autodesk.Revit+2022",
    "appbundles": [ "{{dasNickName}}.{{appBudleName}}+{{appBundleAlias}}" ],
    "description": "Extract Room from Revit file."
}

关键修改点

  • 给$(args[rvtFile].path)添加双引号:"$(args[rvtFile].path)"
  • 给$(appbundles[{{appBudleName}}].path)添加双引号:"$(appbundles[{{appBudleName}}].path)"

这样修改后,Design Automation就能正确解析路径变量,避免因路径含空格或特殊字符导致的命令行参数错误。

内容的提问来源于stack exchange,提问作者chuongmep

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 12:56:07