Autodesk forge 为什么我的Forge Design Automation活动iLogic失败了?

Autodesk forge 为什么我的Forge Design Automation活动iLogic失败了?,autodesk-forge,autodesk-designautomation,Autodesk Forge,Autodesk Designautomation,我正在运行一个基于代码示例的DA作业,我的一些ilogic规则似乎导致它失败。最初,它们运行良好,但当我在mdapi上转换结果时,尽管结果输出中抑制了某些组件,但它们仍然可见。我研究了顶层规则,通过将组件设置为visible=false解决了这个问题,这在很大程度上解决了问题。在我浏览了我的子程序集之后,我测试了ilogic,然后上传了最新版本 现在,我在DA的ilogic处理部分遇到错误(如果我在活动中手动运行逻辑,则在DA的ilogic处理器之前不会出现错误)。我尝试在ilogic中的可见性

我正在运行一个基于代码示例的DA作业,我的一些ilogic规则似乎导致它失败。最初,它们运行良好,但当我在mdapi上转换结果时,尽管结果输出中抑制了某些组件,但它们仍然可见。我研究了顶层规则,通过将组件设置为visible=false解决了这个问题,这在很大程度上解决了问题。在我浏览了我的子程序集之后,我测试了ilogic,然后上传了最新版本

现在,我在DA的ilogic处理部分遇到错误(如果我在活动中手动运行逻辑,则在DA的ilogic处理器之前不会出现错误)。我尝试在ilogic中的可见性线中添加try-catch,但没有成功。我也无法确定是哪些规则或组件导致了问题

此外,似乎ilogic正在尝试在活动执行结束时,在结果压缩后运行-这是正确的吗

这是日志输出:

[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : Setting BridgeConfig to "3 Station"
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 :  params: TunnelVisibility, false
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : HeartBeating every 50000ms.
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : Setting TunnelVisibility to false
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : Getting full file name of assembly
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : ** Saving SVF
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : HeartBeating every 50000ms.
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : SVF Translator addin is available
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : SVF Translator addin is available
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : SVF save
[02/18/2020 19:38:02]     InventorCoreConsole.exe Information: 0 : SVF files are oputput to: T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\inputFile\Playset\SvfOutput
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : SVF can be exported.
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : ** Saved SVF as T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\inputFile\Playset\SvfOutput\result.collaboration
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : Zipping up T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\viewable.zip
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : Zipping the following files:
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : HeartBeating every 50000ms.
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : Saved as T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\viewable.zip
[02/18/2020 19:38:05]     InventorCoreConsole.exe Information: 0 : Saving updated assembly
[02/18/2020 19:38:08]     InventorCoreConsole.exe Information: 0 : Zip path: T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\inputFile\Playset
[02/18/2020 19:38:08]     InventorCoreConsole.exe Information: 0 : Zipping up T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\result.zip
[02/18/2020 19:38:08]     InventorCoreConsole.exe Information: 0 : Zipping the following files:
[02/18/2020 19:38:08]     InventorCoreConsole.exe Information: 0 : HeartBeating every 50000ms.
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : Saved as T:\Aces\Jobs\bcc3160360d84b849acae7443caaf428\result.zip
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : Performing iLogic diagnostics...
[02/18/2020 19:38:09]     InventorCoreConsole.exe Error: 0 : iLogic error 
[02/18/2020 19:38:09]  Context: RuleRunning 
[02/18/2020 19:38:09]  Details: System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
[02/18/2020 19:38:09]    at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
[02/18/2020 19:38:09]    at Inventor.ComponentOccurrence.set_Visible(Boolean )
[02/18/2020 19:38:09]    at iLogic.ComponentInRule.set_Visible(Object componentName, Boolean value)
[02/18/2020 19:38:09]    at ThisRule.Main()
[02/18/2020 19:38:09]    at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
[02/18/2020 19:38:09]    at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
[02/18/2020 19:38:09]     InventorCoreConsole.exe Error: 0 : iLogic error 
[02/18/2020 19:38:09]  Context: RuleRunning 
[02/18/2020 19:38:09]  Details: System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
[02/18/2020 19:38:09]    at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
[02/18/2020 19:38:09]    at Inventor.ComponentOccurrence.set_Visible(Boolean )
[02/18/2020 19:38:09]    at iLogic.ComponentInRule.set_Visible(Object componentName, Boolean value)
[02/18/2020 19:38:09] P r o c e s s i n g   f a i l e d 
[02/18/2020 19:38:09]  
[02/18/2020 19:38:09]    at ThisRule.Main()
[02/18/2020 19:38:09]    at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
[02/18/2020 19:38:09]    at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : End of iLogic diagnostics...
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : Deactivating plug-in: UpdateUserParametersPlugin
[02/18/2020 19:38:09]     InventorCoreConsole.exe Information: 0 : : UpdateUserParametersPlugin: deactivating... 
[02/18/2020 19:38:09] [SBXMSG] The process 2184 ended.
[02/18/2020 19:38:09] [SBXMSG] Process exit code: -1
[02/18/2020 19:38:10]  
[02/18/2020 19:38:10] End Inventor Core Engine standard output dump.
[02/18/2020 19:38:10] Error: InventorCoreConsole.exe exits with code -1 which indicates an error.
[02/18/2020 19:38:10] End script phase.
[02/18/2020 19:38:10] Error: An unexpected error happened during phase CoreEngineExecution of job.
[02/18/2020 19:38:10] Job finished with result FailedExecution
[02/18/2020 19:38:10] Job Status:

我在活动中尝试了另一种方法,将活动中的可见性设置为off,而不是通过iLogic,但也失败了。我的工作是删除被抑制的组件,这不是一个长期的解决方案,但至少我的模型在查看器中看起来是正确的


我很想知道我是否遗漏了其他内容,或者这是否是问题的全部原因,关于:模型衍生API转换/导出受抑制的组件。

您能否提供一个可用于重现问题的示例模型?还需要您正在更改的参数以及驱动模型的值?关于日志:有些消息可能在report.txt中被记录,而不是按照实际的执行顺序