- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Long time lurker, first time poster.
I'm looking into whether there is ilogic code such that it monitors a series of parameters and if one is altered it then continues to do ilogic things based on the value of the changed parameter. Similar to how if a user parameter is referenced in an ilogic, and is changed, the ilogic fires, but if other parameters change the illogic rule doesn't run. I want to reference several user parameters and if one changes, the code goes from there.
Why?
Lets say I have an Ipart and it's referenced by 3 separate top level assemblies, so I have 3 members in the i-table. I have written code that handles application of a pattern on the part and the pattern varies based on length, each member m1, m2 & m3 have different lengths. Each member length is currently driven by a unique Length parameter in the top-level assemblies, Length1, Length2, Length 3. In the I part I also have corresponding length parameters being driven by the top level assemblies. These parameters are not linked through the parameter control module but driven by a configuration rule in the assemblies. I have the code working and from each top level I can drive lengths and patterns are controlled appropriately. But at the ipart level, the only way I could think to do that was to have 3 separate rules specific to each top level assembly with their specific Length parameter referenced in that rule.
All three of the rules are driving the same parameters of the same pattern so it seems a little bulky. If theres a code that says something along the lines of " If Length1 changes, run rule using Length1 value, If Length 2 changes, run rule using Length2 value, etc." Then I can have 1 rule controlling inputs from the top levels.
The rest of my ilogic code changes I-table values and I have that all squared away and fine, but its all based on the Length value. Company policy won't let me share the code.
Any tips or tricks appreciated! Thanks for your time!
-Shane Meyer
Solved! Go to Solution.

