- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After my office migrated to Inventor 2023 (from 2021), I've started getting weird errors.
We discovered that it was related to a known bug with Model States. Removing model states from the affected assemblies does resolve the problem, however it does mean that we will not be able to utilize functionality of Model States. Is there any workaround that allows us to continue using Model States?
General Description of the problem:
Parent Assembly (ComponentAdd.iam and ConstraintOffset.iam) contains a subassembly and code that runs a rule in the subassembly:
iLogicVb.RunRule("SubAssy", "Rule0")
Subassembly (ComponentAdd-SubAssy.iam and ConstraintOffset-SubAssy.iam) has a rule that performs some operation inside that assembly.
If I run the rule in the subassembly, it works fine. If I run the rule in the parent assembly (which just calls the rule in the subassembly), I get an error like:
Error on line 9 in rule: Rule0, in document: ConstraintOffset-SubAssy.iam
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
The error seems to occur specifically on lines that modify the subassembly (in my examples adding a component or modifying offset of a constraint).
Merely doing calculations, string operations, getting references to components, etc works fine though.
Edit: title and text changed after discovering the issue being related to a known bug.
Solved! Go to Solution.