autodesk forge – Invalid switch [$(args[rvtFile].path)]. Variables that expand to paths must be quoted
Hi Autodesk Forge team,
I have issue with create activity need help with Design Automation. This is body I’m tried to achive with a activity to extract room data, but have some wrong with command line. I don’t know what is extract issue i’m faceing. I guess it have some update from server but don’t know how to modify a update to fix that.
This is body input :
{
"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."
}
Output issue :
{
"commandLine": [
"Invalid switch [$(args[rvtFile].path)]. Variables that expand to paths must be quoted.Invalid switch [$(appbundles[RoomExtractor2].path)]. Variables that expand to paths must be quoted. (Parameter 'commandLine')"
]
}
Any help appreciated !
Read more here: Source link
