我是 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
我尝试使用的一个示例文件可以从这里找到: https ://www.dropbox.com/s/chffmh62wlmuwx7/empty.rvt?dl=0
有人可以测试一下,他是否可以将它与 Revit 2018 设计自动化一起使用。
我对 Workitem API 也有些困惑。文档说我需要使用 3 legged auth。(这似乎非常困难,因为它需要在请求中添加额外的签名(?)......),但分步指南显示它是两条腿的,否则对我来说也可以。这可能不是我困难的原因。
有任何想法吗...?