I'm having an issue where when I run my RULES the model updates 99% of the assembly components. The 1% will update if I run the RULE again with the same inputs. What am I missing?
Hi there,
Sounds like there may be some interdependency between the operations you are doing, so some of them do not succeed for the first time around, but when certain things got updated, then the remaining 1% can get updated too?
Not sure if it makes sense in your case. Does it only happen to a certain assembly?
If you do similar update through the user interface, then all is fine?
Cheers,
If I remember correctly I run into this sometimes when I am calculating a parameter in a rule and that parameter is used in a later rule. The later rule still uses the old parameter value therefore the parts doesn't update properly. To correct this I have to use RuleParametersOutput() and InventorVb.DocumentUpdate() at the end of the first rule. This way the later rule is using the new value. Not sure if this is what's happening in your case but just wanted to throw that out there.
Dan
Here are two examples that I quickly came up with. I found different ways to make the code work but when you are initially writing it, you are expecting it to work a certain way and it doesn't. Hope these examples help.
Dan