- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a few iLogic rules that are globally set to the "Before Save" trigger - some on parts and some on assemblies. I'm having an issue where Inventor wants to save these documents, but tries and fails to run the iLogic. I don't want it to even try in this scenario.
For example, if I'm working in a drawing (exclusively), Inventor may want to save an assembly - which triggers the "Before save" rule. This is fine if the assembly is checked out of the vault and able to save. However, if the assembly file is not checked out and/or locked, I get an "Error in rule: Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))".
In addition to this error, I also get a message from the "Assembly Bonus Tool" which reads "Please open/activate an assembly document to run this command". I'm assuming this is because my iLogic rule includes the "Sort" command which sorts the browser list while working in an assembly - but it can't because I really don't have that document "open".
What I need is a way to NOT run these rules when I don't have the document active. I've attached my rule for my assembly - would someone be able analyze my code and help?
Thanks,
Nate
Solved! Go to Solution.