工作项执行期间的CorruptModelException

问题描述 投票:0回答:1

我对Forge设计自动化(V3 Beta)全新了

在设计自动化框架内执行工作项期间,抛出CorruptModelException。

正在发送的模型(.rvt)将在桌面环境中无问题地打开(R2018)。

我试图清除未使用的和重新保存,但它没有帮助。这是日志中告诉问题的部分。

[04/17/2019 10:11:16] Found an addIn for registration: xxx.addin
[04/17/2019 10:11:16] Initializing RCE....
[04/17/2019 10:11:16] Initializing RevitCoreEngine (and possibly running stub installer)...
[04/17/2019 10:11:16] Language not specified, using English as default
[04/17/2019 10:11:18] Initialize and  get RCE: (VersionBuild) 18.0.0.0 (VersionNumber) 2018 (SubVersionNumber) 2018.3
[04/17/2019 10:11:18] Autodesk.Revit.Exceptions.CorruptModelException: The model could not be opened: Unspecified error
[04/17/2019 10:11:18]  (COleException 0x80004005)
[04/17/2019 10:11:18]    at Autodesk.Revit.ApplicationServices.Application.OpenDocumentFile(String fileName)
[04/17/2019 10:11:18]    at DesignAutomationFramework.DesignAutomationData..ctor(Application revitApp, String mainModelPath)
[04/17/2019 10:11:18]    at DesignAutomationFramework.DesignAutomationReadyEventArgs..ctor(Application revitApp, String mainModelPath)
[04/17/2019 10:11:18]    at DesignAutomationFramework.DesignAutomationBridge.SetDesignAutomationReady(Application revitApp, String mainModelPath)
[04/17/2019 10:11:18]    at RevitCoreEngineTest.RceConsoleApplication.Program.UserMain(CommandLineArgs cl)
[04/17/2019 10:11:22] RESULT: Failure - Result of running user app is failure
[04/17/2019 10:11:22] Finished running.  Process will return: TestError
[04/17/2019 10:11:22] ====== Revit finished running: revitcoreconsole ======
[04/17/2019 10:11:22] Process exit code: 4
[04/17/2019 10:11:22] End Revit Core Engine standard output dump.
[04/17/2019 10:11:22] Error: Application revitcoreconsole.exe exits with code 4 which indicates an error.
[04/17/2019 10:11:22] End script phase.
[04/17/2019 10:11:22] Error: An unexpected error happened during phase CoreEngineExecution of job.
[04/17/2019 10:11:22] Job finished with result FailedExecution

我正在尝试使用的一个示例文件可以在这里找到:qazxsw poi

有人可以测试一下,他是否可以将其用于Revit 2018设计自动化。

我对Workitem API也有点困惑。文档说我需要使用3腿认证。 (这似乎非常困难,因为它需要请求中的附加签名(?)...),但是分步指南显示它有两条腿,否则对我来说也可以正常工作。这可能不是我遇到困难的原因。

有任何想法吗...?

autodesk-forge autodesk-designautomation
1个回答
2
投票

评论中提供的链接不是直接下载链接。如果您点击该链接,它会将您带到一个网页:

https://www.dropbox.com/s/chffmh62wlmuwx7/empty.rvt?dl=0

工作项输入参数需要直接下载链接才能正确处理文件。例如,到完全相同的文件的直接下载链接是

https://www.dropbox.com/s/chffmh62wlmuwx7/empty.rvt?dl=0

© www.soinside.com 2019 - 2024. All rights reserved.