首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >工作项执行期间的CorruptModelException

工作项执行期间的CorruptModelException
EN

Stack Overflow用户
提问于 2019-04-17 10:45:24
回答 1查看 450关注 0票数 0

我对Forge设计自动化(V3 Beta)完全陌生。

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

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

我试着清除未使用的垃圾,但这没有帮助。下面是日志中告诉问题的部分。

代码语言:javascript
复制
[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

有人能测试一下,他是否可以在Revit2018设计自动化中使用这个。

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

有什么主意.?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-04-18 12:49:12

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

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

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

https://dl.dropboxusercontent.com/s/chffmh62wlmuwx7/empty.rvt

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55725754

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档