mehr27
Structural
- Dec 18, 2001
- 27
This is structural in nature but could apply to any subject:
I have set up a set of
statements that will output a rebar diameter based on rebar size. That's no problem.
(etc.)
However, I have several different bar sizes within a structure. I am trying to define different diameters depending on the location (i.e. bar_diameter_compression, bar_diameter_tension) without having to redefine my conditional statement above to suit each location (i.e. bar_size_compression, bar_size_tension) since a bar size has a specific diameter regardless of location.
Any way of using this one definition above to suit every location and keep it local to whichever bar I am working with? Is there a better way of defining this (something like a case statement)? Sorry about being so wordy.
I have set up a set of
Code:
if
Code:
bar_diameter := |0.375 in if bar_size = 3
|0.500 in if bar_size = 4
However, I have several different bar sizes within a structure. I am trying to define different diameters depending on the location (i.e. bar_diameter_compression, bar_diameter_tension) without having to redefine my conditional statement above to suit each location (i.e. bar_size_compression, bar_size_tension) since a bar size has a specific diameter regardless of location.
Any way of using this one definition above to suit every location and keep it local to whichever bar I am working with? Is there a better way of defining this (something like a case statement)? Sorry about being so wordy.