Using macros to create points and update csv file?

Maor Kletter_22156
Maor Kletter_22156 New Altair Community Member
edited July 2022 in Community Q&A

I used macros to load csv file with points, there is any way to maintain the change is the csv file to the motion view online?

Answers

  • Praful
    Praful
    Altair Employee
    edited July 2022

    Hello Maor

    I see that this question of yours 7 month ago went unanswered. Not sure you found an answer somewhere else.

    There is no "online" or a dynamic way of maintaining a connection between the point values to the csv file. What that means is, if you change a value in the csv file, the change is not automatically and immediately visible in the MotionView points.

    However, a parametric relation can be established between the csv file and the points.

    One way to do this is to define a 3D Cartesian curve. You may chose "Do not write to file" so that the curve itself is not written to the solver deck.

    Then, use the curve x,y, and z datamembers with index (as shown below) in the point properties.image

     

    If there are several such points to be defined, it would be just easier to edit the MDL in a text editor like below

    image

    Any time the csv is updated, the model can be reloaded to get the updated point coordinates or the curve data can be reloaded using the "Reload Data" button in the curve panel. (This can also be done using right click option on the Curve in the browser).

    Hope this helps. Attached is the example model

    Regards

    Praful