Inventor 2022 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
we are getting this error on any assembly on two different computers when certain conditions are met. I have attached simple example assembly with the error easily reproducible.
The error is:
Error on line 1 in rule: TEST RULE, in document: Assembly.iam
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
EDIT 2: Error More info tab:
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.Parameter.set_Expression(String )
at iLogic.ParamDynamicFinder.SetParamValue(Parameter param, Object value, Boolean doUpdate)
at ThisRule.Main() in rule: TEST RULE, in document Assembly.iam:line 1
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
iLogic Rule:
Parameter("Pin:1", "PIN_DIAMETER") = Pin_Diameter
Parameter("Sub_Assembly", "Plate_Distance") = Plate_Distance
iLogicVb.UpdateWhenDone = True
Below is screencast of the error when it appears. The only fix how to get rid of the error is to close the Inventor and open it again, this is also shown in the video, but this is not a solution. The error will appear again.