工作项执行期间出现 CorruptModelException
CorruptModelException during work item execution
我对 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 条腿的身份验证。 (这似乎非常困难,因为它需要在请求中添加额外的签名(?)...),但分步指南显示它有两条腿,否则对我来说也可以正常工作。这可能不是我遇到困难的原因。
有什么想法...?
评论中提供的link并非直接下载link。如果您单击 link,它会将您带到一个网页:
工作项输入参数需要直接下载 link 才能正确处理文件。例如,直接下载 link 到完全相同的文件是
https://dl.dropboxusercontent.com/s/chffmh62wlmuwx7/empty.rvt
我对 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 条腿的身份验证。 (这似乎非常困难,因为它需要在请求中添加额外的签名(?)...),但分步指南显示它有两条腿,否则对我来说也可以正常工作。这可能不是我遇到困难的原因。
有什么想法...?
评论中提供的link并非直接下载link。如果您单击 link,它会将您带到一个网页:
工作项输入参数需要直接下载 link 才能正确处理文件。例如,直接下载 link 到完全相同的文件是
https://dl.dropboxusercontent.com/s/chffmh62wlmuwx7/empty.rvt