A few questions
A few questions
(OP)
I have a variable defined in Mathcad EX: C.e = 5m, I would like to input "C.e" into an excel table in the Mathcad file, how can I do that? Please see attached screenshot.
My second question would be:
There are four different conditions for calculating one variable, each with its own equation. For example: The equation for the exposure factor is different if the building is in "Open Terrain, Rough Terrain, etc.."
What's the cleanest way of setting this spread sheet up to deal with all four level terrains? How can I specify which one applies? I'm creating this spreadsheet in a format that will be used by other people for other projects.
Much thanks
My second question would be:
There are four different conditions for calculating one variable, each with its own equation. For example: The equation for the exposure factor is different if the building is in "Open Terrain, Rough Terrain, etc.."
What's the cleanest way of setting this spread sheet up to deal with all four level terrains? How can I specify which one applies? I'm creating this spreadsheet in a format that will be used by other people for other projects.
Much thanks
RE: A few questions
I think the cleanest setup is to have the user input the Exposure Catagory. Then, deal with the exposure factors using "if statements" within Mathcad. But first, assign A=1, B=2, C=3 and D=4. Makes the if statements easier to write. In this way, you don't need the excel component at all.
RE: A few questions
I like the list box, or other components, because you limit the available user input to only those values you want to be used and don't have to account for someone choosing a value of "5" when the correct input range is 1-4. Plus you can just click on what you want.
RE: A few questions
I have one more question, please see attached screenshot.
If it's not clear, please let me know.
Thanks!
RE: A few questions
In the attached picture, the β1 factor for concrete design is calculated using an IF statement.
RE: A few questions
RE: A few questions
RE: A few questions
RE: A few questions
RE: A few questions
You were right UcfSE about the list boxes, they don't print neatly (the options in the boxes don't show) and I'm using MathCAD 14
RE: A few questions
RE: A few questions
For the exposure category, I set up a global variable as follows:
(B C D) = (1 2 3)
Set up a 1 X 3 matrix, then ~ (keystroke for global definition,the one that is the 3 line equal sign), another 3 X 1 matrix on the right side of the equal. Now type in the B C D no quotes, and the 1 2 3 in the other matrix.
Now you can input: Exposure := B (without quotes) and it is aready equal to 2. Now you have an index to use in a vlookup to pick the correct value for exposure B.
It looks good on the sheeet because you don't need the quote marks for a text variable, you can just use the letters when you input.
regards,
chichuck