General iLogic Practices question

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Not sure if this is the place to post this question or not.
I've been writing iLogic code for the last month or so and I'm wondering if I'm doing it the best way. For example, we manufacture truck bodies, trailer bodies and trailer chassis. What I've been working on to date is the trailer bodies, made up of a floor assy., left and right sides, bulkhead and tailgate. Depending on the model and material there may be other options as well. I'll use the sides as an example for my question. I use one iLogic rule to drive length (in 2' increments), height (in 6" increments) and style (posted or smooth panel). I also include options for the sides that turn on or off features depending on what type of tailgate it gets. And I do all this with one rule and one form.
Is this best practice? Or would I be better using one rule for length, one rule for height, one rule for the features for tailgate options? I haven't had any major problems trouble shooting my code to get things working properly although some of my rules end up being 400 + lines long. Seems large compared to the examples I've seen in the tutorials. But they work and my daddy always told me "if it ain't broke, don't fix it" . 😉 So is there an advantage to breaking rules into smaller size and sticking to one function per rule? If so, what would that be?
I'm a newbie at all this iLogic stuff and I'd rather develop good habits early on, than try to break them later. Looking forward to hearing opinions on this topic. Have a great weekend.
Frank
Inventor 2016