Using macros to create points and update csv file?
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
-
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.
If there are several such points to be defined, it would be just easier to edit the MDL in a text editor like below
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
0