(API) Inaccurate results using the extreme results server

(API) Inaccurate results using the extreme results server

Anonymous
Not applicable
1,578 Views
20 Replies
Message 1 of 21

(API) Inaccurate results using the extreme results server

Anonymous
Not applicable
Hi, I'm currently trying to get the maximum principal stress on two finite elements panelsl from Excel with VBA. I'm getting the results with robApp.Project.Structure.Results.FiniteElems.MaxValue(extParams).Value and I'm feeding it withfollowing parameters extParams.ElementSel = objPanel.FiniteElems 'Where objPanel is the corresponding RobotObjObject extParams.CaseSel = CStr(loadCase) extParams.Smoothing = I_FRS_NO_SMOOTHING extParams.resultID = valType 'Here, this is equal to I_FRT_PRINCIPAL_S1 extParams.Layer = I_FLT_UPPER 'I'd have the maximal, minimal or absolute max but the values doesn't seem available... Each time I call this function I get the same results as displayed in RSA for the first panel but the results for the second one are almost always wrong (eg I get 16 Mpa in excel for 3 Mpa displayed in RSA). I noticed that I could get the same results in Excel as in RSA if I close RSA and reopen the model, then call the function from excel without having run the model again. Do you know where this problem comes from ? PS : I posted in another topic about the method using the query mechanism but I got an error 429 and I read it might be even longer to run. To the admin team, I had problems seeing the topic list inside the board page and posting with firefox and IE. Now I can post using Chrome but still no topics appear in the board page. Thanks, Regards.
0 Likes
1,579 Views
20 Replies
Replies (20)
Message 21 of 21

Anonymous
Not applicable

Hello,

 

Thanks, I reviewed your code and saw no noticeable difference between yours and mine so I still don't know what's wrong.

 

I PM'd you my complete excel file and robot model along with a screen capture of the problem.

 

I noticed that if the thickness is not changed programmatically between each iteration of my code, I can get the right result in excel by restarting robot and running the excel code again. Otherwise, if the thickness is changend programmatically, restarting robot is no use and the error remains.

 

Regards.

0 Likes