Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor Parameter Not Updating

1 REPLY 1
Reply
Message 1 of 2
calaes
301 Views, 1 Reply

Inventor Parameter Not Updating

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

Tags (2)
1 REPLY 1
Message 2 of 2
HermJan.Otterman
in reply to: calaes

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

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report