Inventor user parameters not updating properly, even after Rebuild
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm facing an issue which seems to keep reoccurring in similar situations and looks a lot like a bug.
Some parameters won't update their values in an .ipt, even after updating the model or rebuilding it multiple times (manually or via API). There's also no Update symbol which is active (lightning bolt).
The expression for these parameters are simple divisions, not complex equations (which shouldn't matter anyway).
In this example, the user parameter 'z' is calculated by dividing a reference parameter 'd43' through a linked parameter 'n' from a different file.
The calculated value shows ~405,2mm, while the actual value should be ~295,4mm.
Also see the image below.
When I use the 'GetValueFromExpression' method on the Parameters object, it does actually return the correct value.
Another manual action to trigger the correct calculation, is to modify the expression, for example adding '+1' to the exression, calculate it, and remove it again.
But this is of course in no way workable, but it shows that there's really something wrong in the update.
Is anybody familiar with this behavior?
It's causing us to loose trust in Inventor, because we don't always notice these errors, or sometimes, even worse, in a later stadium in our production line.
The complete workflow:
- From an Excel sheet, parameters will be pushed to an Inventor .ipt via an Excel macro.
- A second .ipt will be opened which only holds 2 sketches and uses the parameters from the first part as linked parameters.
- Some iLogic rules update the model and rebuild it. But as said, this doesn't do anything.
(it's divided between 2 files, because pushing parameters to a file with no other sketches is a lot faster than pushing parameters to a file without sketches, because every parameter will trigger some updating. By doing it via linked parameters, all parameters will be updated at once).