Exporting data to XML using an script (API)

Arash_20477
Arash_20477 Altair Community Member
edited April 10 in Community Q&A

I'm trying to export prediction data (path loss) to an XML file using an API script in WinProp.

I can do the same thing in ProMan GUI by File > Export > Export Data (Area) > Export XML (All)...

I also looked for a similar functionality in "Scripting and API Reference Guide", but could not find anything.

Best Answer

  • reinerh
    reinerh
    Altair Employee
    edited April 10 Answer ✓

    Hello Arash,

    there is no similar export function in the API, but as after API computation the results are given in the WinProp_Result data structure please add some lines of codes on your side to write the results (given in the 3D matrix component of WinProp_Result) in the desired format.
    Or you can directly further process these results without the need to write to disk first.


    Best regards,
    Reiner

Answers

  • reinerh
    reinerh
    Altair Employee
    edited April 10 Answer ✓

    Hello Arash,

    there is no similar export function in the API, but as after API computation the results are given in the WinProp_Result data structure please add some lines of codes on your side to write the results (given in the 3D matrix component of WinProp_Result) in the desired format.
    Or you can directly further process these results without the need to write to disk first.


    Best regards,
    Reiner