【发布时间】:2021-05-02 22:45:26
【问题描述】:
我正在尝试从 Design Automation for Revit 的 zip 文件夹中打开 Revit 文件,但出现错误:
> Autodesk.Revit.Exceptions.FileNotFoundException: The filePath:T:\Aces\Jobs\1532f21bb19d4605b941472d4961ed96\input.rvt to be opened doesn't exist.
我已尝试为“localname”和“pathInZip”使用不同的参数,但仍然出现此错误
我正在使用 OpenOptions 打开我的模型:
var path = ModelPathUtils.ConvertUserVisiblePathToModelPath("input.rvt");
var openOptions = new OpenOptions();
openOptions.DetachFromCentralOption = DetachFromCentralOption.DetachAndPreserveWorksets;
Document doc = rvtApp.OpenDocumentFile(path, openOptions);
我的活动:
{
"commandLine": [
"$(engine.path)\\\\revitcoreconsole.exe /al \"$(appbundles[AppBundle].path)\""
],
"parameters": {
"inputFile": {
"zip":true,
"verb": "get",
"description": "Input Revit model",
"required": true,
"localName":"input.rvt"
}
}
我的工作项目:
{
"activityId": "activityId",
"arguments": {
"inputFile": {
"pathInZip":"test.rvt",
"url": "https://developer.api.autodesk.com/oss/v2/buckets/my_bucket/objects/test.zip",
"Headers": {
"Authorization": "Bearer {{Bearer}}"
}
}
}
【问题讨论】:
标签: autodesk-forge autodesk-designautomation