How would I write a rule for vertical post placement and number?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've set up a handrail generator and I'm trying to figure out how to write something that would determine the number of and placement of the vertical posts. (see image)
I'd like something that would allow me to access the total length of the shown handrail (One_Side_Length), it would then divide it by 72" and figure out the number has any remainder that it should add another vertical and then equally space all of them from one side to the other.
Example:
if the (One_Side_length) was 156" long, then it should know that 156/72=2.166666666, so I'd need 3 verticals, each equally spaced at 52".
I just don't know how to do the rounding and greater than/less than stuff
The two variables are:
Total Lenth: (One_Side_Length)
Osha Spacing: (Osha_Spacing)