iLogic error when using "Open Drawing From Vault"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
My company has a very simple iLogic rule that runs on an event trigger (After Open Document) to update a date field on our drawings. The rule establishes and saves a field from the following:
iProperties.Value("Custom", "Year Saved") = Now.ToString("yyyy")
We have everything set up correctly and never encountered errors until Inventor introduced the "Open Drawing From Vault" command in the context of a part or assembly file. Every time a drawing is opened using this, we encounter the following error:
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
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.Property.set_Value(Object )
at ThisRule.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
I can open the same drawing from my local drive via Inventor or from the Vault client with no issues - only this context causes the error. Any idea why this might be happening and what we can do to fix it?
Thanks!