How to extract in Python script 3D curve created in FLux?

Vincenzo
Vincenzo Altair Community Member
edited February 6 in Community Q&A

Hi, what is the command to import in a Python script, example in a vector or in a matrix, the result of a 3D curve created in Flux 2D?

Tagged:

Answers

  • asoualmi
    asoualmi
    Altair Employee
    edited January 24

    Hi,

    To export the curve from flux there are several possibilities:

    • Excel
    • Txt
    • XML
    • Python

    To do it , right click on the curve and select the adequate format.

    One this is done, if you want to import the curve in another flux project, go to the curve right click select import curve as txt file (currently it only the format available if you want to import any curve).

    Thanks.

  • Vincenzo
    Vincenzo Altair Community Member
    edited January 24

    Hi, ok thank you, but I mean, I need the Python command string to let the numerical result of the 3d curve be available on the script during the script excecution, so to read and store the result on a variable that can be a vector difined inside the script for example.

    Could you indicate me what is the syntax of the command?

    Example for 2d curve it is

    variable=CurveSpatial2D[curve_name].y[0].values[:]

  • Vincenzo
    Vincenzo Altair Community Member
    edited February 6

    Hi, any update? Nobody can help me?