PDA

View Full Version : API question



robert.ronnholm
2010-09-27, 12:33 PM
I would like to access the efficiency ratio of a bar (EC3). Is that possible or do I have to calculate it myself?

I find "IRDimMembRes" with a field "EffRatio" that seems right...

/Robert

robert.ronnholm
2010-09-28, 09:08 AM
To answer my question in C#:

IRDimMembCalcRetValue RdmRetValue;
IRDimDetailedRes RdmDetRes;
IRDimAllRes RdmAllRes;
IRDimCalcEngine RdmEngine = Robot.Project.DimServer.CalculEngine;

RdmEngine.Solve(null);

RdmAllRes = RdmEngine.Results();
RdmDetRes = (IRDimDetailedRes)RdmAllRes.Get(1);

double memberRatio = RdmDetRes.Ratio;

(Code ported from "Robot API SteelDesign.pdf")