Hi,
have a look at examples:
API example: Extract information from screen out file
' Read Maximum Injection pressure and the time it occurred
' return the array of numerical values associated with the last instance of Message ID (MSCD) 41400
' MSCD 41400 1 0 0 0 0 0 5
' Maximum injection pressure (at %11.4G) = %11.4G
' s,1,2
' Pa,1,1
' Note: Please see .../data/dat/shared/cmmesage.dat for format details
Set MM = lMessages.GetMessage(41400,0)
lStr = "Maximum injection pressure occured at " & CStr(MM.GetFloat(1)) & " Pressure = " & CStr(MM.GetFloat(0))
MsgBox CStr(lStr)
So for
1621.Mechanical properties data
----
MSCD 1621 6 0 0 0 0 0 5
Mechanical properties data: E1 = %11.4G
E2 = %11.4G
v12 = %11.4G
v23 = %11.4G
G12 = %11.4G
Pa,1,1
Pa,1,2
,0,3
,0,4
Pa,1,5
----
' Note: Please see .../data/dat/shared/cmmesage.dat for format details
Set MM = lMessages.GetMessage(1621,0)
lStr = "E1= " & CStr(MM.GetFloat(0)) & " E2= " & CStr(MM.GetFloat(1))
MsgBox CStr(lStr)
' or could be:
'lStr = "E1= " & CStr(MM.GetFloat(1)) & " E2= " & CStr(MM.GetFloat(2))
'MsgBox CStr(lStr)
"What should I do with E1 = %11.4G ? or with Pa,1,1 ?"
> That is format description. You could leave %11.4G
Pa,1,1, is unit, so in Pa which you might want to recalculate to MPa, and the last number, 1, is the position in array of MM.
Hope this clarifies.
Regards,
Berndt
( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)