iLogic Help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am designing some code to provide the quantity of rungs for a ladder of a certain order size with a certain space from top and bottom of concrete.
If they order 4000mm, the amount of rungs that can fit are 4000 ("ORDER")-200("First_rung") / 300 ("RungSpace") = 12.67 so 13.
This makes the space between the bottom rung and the ground: 4000 - [ 12*300 (one less) +200 ] = 200mm
The critical points are when the bottom rung is 0<x<50, in these cases we want parameter "First_rung" to be changed to 150. 0 is fine because in this case it will compute 12 rungs and 50 is fine because the bottom rail will be touching the ground. I have some code working that was half right, then i re-wrote in an effort to clean it up but now the "Rungs" parameter is just staying at 0.