I'm having issues with the inventor parameter table not updating. When running a rule, I call out another rule that updates a parameter, in this case d_TEST. I call out a msgbox that displays the value of this rule in the called out rule, then when it returns to the original rule, I want to run some code based upon the new d_TEST value, but it still reports the parameter as the original unchanged value.
I have tried including all of the following lines to try and "update" the parameters, application, and document, but to no avail. I have tried including this in the original rule, and the called out rule as well:
ThisDoc.Document.Rebuild() RuleParametersOutput() iLogicVb.UpdateWhenDone = True Parameter.UpdateAfterChange = True InventorVb.DocumentUpdate()
Attached is a sample part with a couple ilogic rules showing what I mean. This is a very simplified version of what I'm trying to do in another part/assembly.
Thanks
hello Calaes
instead of using
d_TEST = 9 in
try using
Parameter("d_TEST") = 9
this will update the parameter earlier
use it in both testrules.
the first option will update the value at the end of the first rule
Can't find what you're looking for? Ask the community or share your knowledge.