Catastrophic Failure iLogic Error When Opening Top Level Assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I have a problem where the top level assembly (the General Arrangement assembly) is encountering an iLogic error despite the iLogic code running fine in its sub-assemblies.
I have attached a small simplified example of a model with the error.
Details of the model set-up and the issue are outlined below.
1. Model Structure
My model is driven from a single spreadsheet (which I have recently converted to a macro enabled spreadsheet) and is then linked to a single empty part file called PARAMETERS. This gives a single link between inventor and excel.
All the parts and assemblies are then linked back to the PARAMETERS part file rather than the spreadsheet.
2. Triggered iLogics
Within the sub-assemblies, I have three iLogic codes written and triggered in the following order:
1) Setting Level Of Detail
Code to set a custom level of detail called “Automated Model”. This is to enable the iLogic Rules code to run without error because a custom level of detail is required for the code.
2) Trigger For iLogic Rules
Code which looks at the last save date and time stamp within the spreadsheet then compare it against the EXCEL_SAVE_DATE iproperty. If the dates do not match, it then triggers the iLogic Rules code to run.
This is to prevent large amounts of code from needlessly running every time the model is opened.
3) iLogic Rules
Code to activate / suppress certain components depending on the spreadsheet selections.
At the end of the code, the EXCEL_SAVE_DATE iproperty is updated to match the last save date and time stamp within the spreadsheet.
Both the Setting Level Of Detail and Trigger For iLogic Rules are set to trigger After Open Document.
The Trigger For iLogic Rules is also set to trigger on Any Model Parameter Change.
3. Issue Encountered
The top level assembly (the GENERAL ARRANGEMENT assembly) is encountering the following error dialogue box.
iLogic Event-Driven Rule
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
It appears that there may be a conflict between sub-assemblies because the error seems to occur if multiple sub-assemblies are triggered to run.
For example, if I remove the triggers in the attached FOUNDATIONS sub-assembly then open the GENERAL ARRANGEMENT assembly, the errors no longer occur.
If I place the Trigger For iLogic Rules code in a Try / Catch, this prevents the error from occurring when opening the model but the same error still appears if the Bill Of Materials dialogue box is opened in the GENERAL ARRANGEMENT assembly.
I have done many searches on this error which has returned varying suggestions on what causes it but none that I have found to help resolve it with my model.
If anyone can shed more light on what is causing the error and/or suggest a possible solution, then it would be greatly appreciated.
Regards,
Kurt.