API ROBOT (Python) - Panel results

API ROBOT (Python) - Panel results

polylouis
Enthusiast Enthusiast
767 Views
1 Reply
Message 1 of 2

API ROBOT (Python) - Panel results

polylouis
Enthusiast
Enthusiast

Hello everyone,

 

I have some questions about panel results and the stockage of extreme values.

 

I tried to stock Mxx,Myy values but I have the following error :

 

FeColl=structure.Selections.Create(IRobotObjectType.I_OT_FINITE_ELEMENT)
FeColl.AddText("Panel")
CSelection=structure.Selections.Get(IRobotObjectType.I_OT_CASE)
CSelection.AddText ("42to53")
 
test = IRobotResultQueryParams(app.CmpntFactory.Create(IRobotComponentType.I_CT_RESULT_QUERY_PARAMS))
test.SetParam(IRobotResultParamType.I_RPT_SMOOTHING, IRobotFeResultSmoothing.I_FRS_SMOOTHING_WITHIN_A_PANEL)
test.SetParam(IRobotResultParamType.I_RPT_LAYER, IRobotFeLayerType.I_FLT_MIDDLE)
test.Selection.Set(IRobotObjectType.I_OT_FINITE_ELEMENT, FeColl)
test.Selection.Set(IRobotObjectType.I_OT_CASE, CSelection)

test.ResultIds.SetSize(2)
test.ResultIds.Set(1, I_FRT_DETAILED_MXX)
test.ResultIds.Set(2, I_FRT_DETAILED_MYY)
 
First problem :
test.ResultIds.SetSize(2)
AttributeError: '__ComObject' object has no attribute 'SetSize'
 
In addition I am wondering if it is the way to use I_CT_RESULT_QUERY_PARAMS instead of I_CT_FE_EXTREME_PARAMS
 
Do you have any ideas to solve this problem.
 
Thank you in advance,
Louis
0 Likes
768 Views
1 Reply
Reply (1)
Message 2 of 2

Stephane.kapetanovic
Mentor
Mentor

hi @polylouis 

here after a topic similar than yours

https://forums.autodesk.com/t5/robot-structural-analysis-forum/arsa-extract-results-via-query-with-p...

I hope you find help soon.

Best regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
0 Likes