iLogic - Making it wait
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
I found with iLogic that parameters dont always update when a rule runs and sometimes a rule needed to be run twice. This was pointed out to me last week that a blue Parameter may not update so instead, use it like this-
Dim oParams As UserParameters = oDef.parameters.UserParameters
oParams("ParameterName").Value = 100 in
This updates the parameters as they are changed but in doing so raises another issue; Lag. I am updating 150 Parameters from vb.net and using iLogic to make local calculations but now im using this different parameter method, the rule runs on EVERY parameter change and each change takes about 5 seconds to update the base model even if geometry is not changing. My base model has from a 7 second update to 12.5 minute update......
So my question is:
How can i stop iLogic running until all of the parameters have been updated? I have put a condition in place with a parameter called RunTheRule = 0 and from VB.Net, change this one last to a value of 1 and the rule is conditionally running on RunTheRule = 1 but i was hoping there was a more elegant built in method (even though i know iLogic is far from elegant..)
Thanks
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.