Getting calculation points from panel result query API

Getting calculation points from panel result query API

Anonymous
Not applicable
337 Views
2 Replies
Message 1 of 3

Getting calculation points from panel result query API

Anonymous
Not applicable

Hi

 

Im using the query function to extract results from the panels in my model, but i cant seem to be able to get the X,Y,Z coordinates of the calculation points it uses?

I have successfully used the  "RobResRowSet.CurrentRow.GetParam(I_RPT_RESULT_POINT_COORDINATES)" feature to get these coordinates for Bar results, but i dont seem to be able to do this with panels.

 

As Im getting the results at the nodes, i have been using a workaround, to get the coordinates by first getting the node id "no = RobResRowSet.CurrentRow.GetParam(I_RPT_NODE)" 

and then getting the node data by a "Nodes.Get(node)" setup.

However, this is just far too slow to be able to handle the amount of data I need to process.

Can I not get this information directly through the query?

 

 

Also bonus question - is it really not possible to get the results directly at the Gauss points instead of these inter-/extrapolated points (Element center or nodes)?

 

0 Likes
338 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Ive attempted some trial and error with various query ResultsIDs, just to see what i get:

 


 For j = 1 To 999
RobResQueryParams.ResultIds.Set j, j
Next j

 

...

 

On Error Resume Next
For j = 1 To 999 ' 1000
test = ""
test = RobResRowSet.CurrentRow.GetValue(j) '.GetParam(j)

If test <> "" Then
Debug.Print "j=" & j & " : " & test
End If
Next j
On Error GoTo 0

 


 

Seem that for ResultIDs j = 1-11, I get something that looks like coordinates, but doesnt quite match for everything.

 

fx.  I get the following, for the node: RobResRowSet.CurrentRow.GetParam(I_RPT_NODE) = 6480:

 

j=1 : 24
j=2 : 7.44
j=3 : 24.2530545837143
j=4 : 1.42621333049552
j=5 : 0
j=6 : 24.2530545837143
j=7 : 1.42621333049552
j=8 : 7.44
j=9 : 25.3685682812536
j=10 : 1.42621333049552
j=11 : 1.27314428264805

Where the acutal node coordinates for 6480 is x,y,z = 3.49, 24.00, 7.44

 

so ResultID 1 and 2 looks like the Y and Z coordinate, but no indication of X.

Also cant work out what the other numbers might be.

 

Is there really no better API documentation than the SDK documents?  Seem very incomplete and inadequate.

0 Likes
Message 3 of 3

Anonymous
Not applicable

I managed to find the X coordinate too - it was hiding under ResultID(0)

 

So in summary, you can get the coordinates for the calculation points like this:

 


RobResQueryParams.ResultIds.SetSize (3)

RobResQueryParams.ResultIds.Set 1, 0 ' X

RobResQueryParams.ResultIds.Set 2, 1 ' Y

RobResQueryParams.ResultIds.Set 3, 2 ' Z

 

...

 

x = RobResRowSet.CurrentRow.GetValue(0)

y = RobResRowSet.CurrentRow.GetValue(1)

z = RobResRowSet.CurrentRow.GetValue(2)




I would still like better documentation of the query function (and the API in general!)

shouldn't have to resort to trial and error.

 

What are other IDs you can get out? I.e. ResultIDs 3 to 11??

#3 looks like Sqrt(x^2+y^2)

#5 seem to always be 0

#8 seem to be Z once again

#9 looks like Sqrt(x^2+y^2+z^2)

#4,#7 and #10 seems to always be the same, but i cannot recognize this number as anything

Similarly no idea what #11 should be.

 

0 Likes