I am using IRobotFeResultDetailed detFE = robApp.Project.Structure.Results.FiniteElems.Detailed to return the analysis results from each of the nodes in the problem. It all works well, I am assuming that all values are returned as N/m (Pa), but when requesting the N and S values using:
res_sxx = detFE.SXX;
res_sxy = detFE.SXY;
res_syy = detFE.SYY;
and
res_nxx = detFE.NXX;
res_nxy = detFE.NXY;
res_nyy = detFE.NYY;
the values that are returned seem to be inconsistant with the values displayed in the interface. All Unit conversions are consitered but if these values are suposed to bre returned in N/m or some varriation of it (N/mm2, ect..) they seem to be incorrect. Are the S and N values returned in another set of units?
HI
Units which you can set in API works within robot. I mean on GUI, tables etc.
If you access data thru API directly (without generating tables, diagrams, screen capcures etc) the internal units of robot are SI units (N,m). So you have to additionaly make unit change in your code:
res_sxx = detFE.SXX / 10000; ' N/mm2