I run Rhino in batch mode (RhinoCommon) and try to give some input parameters with txt.file and export some geometries from grasshopper. I was able to create the first geometry in batch mode. However, when I change the parameters and save the txt file, the grasshopper script does not see the changes in the txt file. How can I solve this problem, do you have any idea @dale@stevebaer@DavidRutten ? I created an example file. Hopefully, it can help to understand the problem better.
It sounds like the Grasshopper script is only reading the txt file once and not updating it based on changes. To fix this, you could add code to your script to monitor the txt file for changes and update the parameters accordingly. One way to do this is by using the FileSystemWatcher similar class, which allows you to monitor a file or directory for changes. You can then add an event handler to detect when the file has changed and update your Grasshopper parameters accordingly.