API - Get bar/panels results

API - Get bar/panels results

cool.stuff
Collaborator Collaborator
655 Views
6 Replies
Message 1 of 7

API - Get bar/panels results

cool.stuff
Collaborator
Collaborator

Hi 🙂

 

How to get bar/panels results for spectral cases, for a specific mode or seismic combination (2Sm or 10P, for instance)? How to define it in c# when retrieving results?

Thanks 🙂

0 Likes
Accepted solutions (1)
656 Views
6 Replies
Replies (6)
Message 2 of 7

Stephane.kapetanovic
Mentor
Mentor

hi @cool.stuff 

try : (API) Finite element results for CQC combinations by ajusting IRobotCaseAnalizeType and IRobotModeCombinationType

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
Message 3 of 7

cool.stuff
Collaborator
Collaborator

 

Hi @Stephane.kapetanovic  🙂

 

Thank you for answering 🙂 Managed to work for panels. How about bar forces?

Dim EV As RobotOM.RobotExtremeValue
Dim Params As RobotOM.RobotExtremeParams
Params = New RobotOM.RobotExtremeParams
(...)

or

I_CT_RESULT_QUERY_PARAMS?

Not possible to barforceserver with method Value, right?

Params.ValueType = I_EVT_FORCE_BAR_MY
    
        Set REV = RobApp.Project.Structure.Results.Extremes.MinValue(Params)
        
            Dim BFD As RobotBarForceData
            Set BFD = RobApp.Project.Structure.Results.Bars.Forces.ValueEx(REV.Bar, REV.Case, REV.CaseCmpnt, REV.Position)
            zzz = BFD.FX
            zz1 = BFD.FY
            zz2 = BFD.FZ
            zz3 = BFD.MX
            zz4 = BFD.MY
            zz5 = BFD.MZ

Also, could you please explain me what does it mean to indicate "I_EVT_FORCE_BAR_MY" and then get all results for bar forces? Wouldn't it only provide My? 

Also, Why use a query instead of barforces?

 

Sorry for all these questions, but I am trying to fit this in the bar force extraction without query...


Thanks again for your help and patience 🙂

Thanks again

0 Likes
Message 4 of 7

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

hi @cool.stuff 

Have you tried DynValue or DynCombValue with an IRobotModeCombinationType from IRobotBarForceServer?

Also, using the SetParam method in RobotResultQueryParam, test the two parameters I_RPT_MODE and I_RPT_MODE_CMB of IRobotResultParamType.

Finally, in RobotTableConfig, the SetFlag method, choose I_TCF_COMB_xxxx options of IRobotTableConfigFlag options.

I am aware of the difficulties. That's right, it's not a topic that's often discussed here.

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
Message 5 of 7

cool.stuff
Collaborator
Collaborator

@Stephane.kapetanovic thanks again for you time and patience 🙂

I am revising my code. I will tell how it went 🙂

Could you just please clarify these topics please? 

"Also, could you please explain me what does it mean to indicate "I_EVT_FORCE_BAR_MY" and then get all results for bar forces? Wouldn't it only provide My?

Also, Why use a query instead of barforces?"

 

Many thanks again 🙂

0 Likes
Message 6 of 7

Stephane.kapetanovic
Mentor
Mentor

hi @cool.stuff 

I don't know if this is the appropriate answer, but:

IRobotExtremeValueType.I_EVT_FORCE_BAR_xxxx types are used to configure the query mechanism required to extract internal force values, but they are not the same as the methods provided by IRobotBarForceServer, which return a RobotBarForceData object. The term ExtremeValue can be misleading, as it refers to values collected through the query process and is relative to the load cases included in the request.

In my example (here), the BFD or BFD_P methods access RobotBarForceData, while QRY_1 extracts an array of Double values using GetValue from RobotResultRowSet that I inject into my own class BarForceResult via a different constructor than the one that accepts BarForceData.

In the end, the numerical values are the same, but they are obtained through different mechanisms and should not be confused.

To confirm this, you can run the data print tests. You will see that the results at n points along the bars are identical, regardless of which method is used.

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
Message 7 of 7

cool.stuff
Collaborator
Collaborator

Many many thanks @Stephane.kapetanovic  🙂

I will get with results as soon as possible 🙂 

Many thanks