Make Data Persistent

Hello everyone,

I am looking for a solution to two specific problems in Grasshopper and hope someone can help me out.

Problem:

Updating parts of a CSV file

I want to create an Excel/CSV file and update only parts of it. However, I have not been successful so far. My goal is to change specific cells in the CSV file without overwriting the entire file. When I resave the CSV, the file is written from scratch.

Saving parameters for multiple objects

My idea was to define values with sliders for multiple specific objects. You select the Main Object with a Slider, then define the object specific values in another preset of sliders. These values should be saved for that object in a list. After that, I want to select another object, define it using the same parameters, and save it again. But the other data is saved as well. This way, I could add as many objects as needed, each with specific attributes, and these would be stored until they are overwritten with new values for a already selected objects.

I have used custom scripted components from the forum, but somehow the data is still not persistent. Currently, the Data Recorder overwrites the data with when there is no data flow.

I only want to have one slider area to define all object specific values.

My Attempts:

  1. CSV File: I tried to update only parts of the file, but without success. The data either gets completely overwritten or is not updated correctly.

  2. Saving Parameters: I tried using sliders and Data Recorders to store values, but the data gets lost once the data flow stops.

My Questions:

  1. Does anyone have an idea on how to update specific parts of a CSV file in Grasshopper without overwriting the entire file?

  2. Is there a way to save parameters for different objects in Grasshopper so that they are not lost when the data flow is interrupted? Perhaps another method or component that I am not aware of?

I would appreciate any help or suggestions!

Thank you in advance.