上下文:RuleRunning 对象引用未设置为对象的实例。在 Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly 处的 ThisRule.Main()

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

以下是设计自动化中的例外情况

12/07/2023 12:50:57]     InventorCoreConsole.exe Error: 0 : iLogic error 

12/07/2023 12:50:57]  Context: RuleRunning 

12/07/2023 12:50:57]  Details: System.NullReferenceException: Object reference not set to an instance of an object. 

12/07/2023 12:50:57]    at ThisRule.Main() [12/07/2023 12:50:57]    at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem) 

12/07/2023 12:50:57]    at iLogic.RuleEvalContainer.ExecRuleEval(String execRule) 

12/07/2023 12:50:57]     InventorCoreConsole.exe Information: 0 : End of iLogic diagnostics... 

12/07/2023 12:50:57]     InventorCoreConsole.exe Information: 0 : Deactivating plug-in: UpdateParamPlugin 

12/07/2023 12:50:57]     InventorCoreConsole.exe Information: 0 : : UpdateParamPlugin: deactivating... 

12/07/2023 12:50:57] CoreConsole Dispose start [12/07/2023 12:50:57] CoreConsole ReleaseAll start 

12/07/2023 12:50:58] CoreConsole ReleaseAll end [12/07/2023 12:50:58] CoreConsole Dispose end 

12/07/2023 12:50:58] Processing failed 

12/07/2023 12:50:58] CoreConsole exiting (-1)

autodesk-forge
1个回答
0
投票

导致该错误的最常见原因是该规则使用了

ThisApplication
,该规则在 Inventor Server 中不可用,而 Design Automation 也使用该规则:
https://aps.autodesk.com/blog/prepare-ilogic-rules-design-automation

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