- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Inventor Community,
Today, I ask your help for problem about ilogic rules running. I want to configure components with ilogic rules and parameters in a loop. My problem is, when I want to import parameter into my component, the rule is triggered and make the changes I want but sometimes, a parameter I wanted to write is replace by the result of another rule execution. To tried to solve it this is my process :
- Disable all ilogic rules of a component using the attribute "AutomaticOnParamChange" of "iLogicRule" class.
- From an SQL database, apply value of all ilogic parameters I need to with the command "Parameter("my_param") = xxx"
- Enable all rules which had the attribute "AutomaticOnParamChange=true" before the process.
The last step is to run all rules which are using parameters (read or write) and due to step 2, parameters are initialize and all works good.
So, to solve my problem, I have some other ideas but I didn't found the solution on Inventor/Ilogic API Documentation :
- Trigger the rules by parameters writing, even if the parameter value don't change
- For each user parameter, get the list of rules which read or write this parameter (ilogic editor can highlight params in blue)
- Get XML structure of ilogic Form into a document.
Do you have an idea of how can I implement one of the solution above ?
Thanks in advance for your time.
B. Sciaudeau
Solved! Go to Solution.