Hello
Is there a way to internalize FD-data objects in Grasshopper?
I’m currently working with a script, that contains two FD-models. The first model is calculated in the script and reactions are given as input to the second model.
However, I would prefer that I didn’t have to calculate the first model every time I open the script.
Therefore I’ve tried to internalize the output data (results). This works while the script is open, but is converted to “Grasshopper.Kernel.Types.GH_ObjectWrapper” if “live-link” connection is lost (ex. when the script is closed and i reopened).
This mean that I have to run the first model every time i run my script - is there a way to avoid this?
Best Regards
Thomas Aamand
Hello @Thomasaar !
Is it maybe possible to read the result from your first model from a .bsc-file?
Best Regards,
Fredrik
Hey Fredrik
Thanks for the suggestion!
I’ve tried to read in a batch file, however this doesn’t allow me to directly input it into a Point.Support.Reaction node, as the output is in text format. It might be possible with some data-manipulation, but this is what I’m trying to avoid 
(Batch-output is seen compared to my original output)
Best Regards
Thomas Aamand
Hello @Thomasaar,
The output from the .bsc file seem to be in text format:
But with the other components the output is data.
There will be created a .csv-file by default in the same directory as the .bsc-file and there
is a component to parse csv, which seem to output data aswell:
However, it does state that not all result types can be converted yet and I don’t know which ones
that are doable, maybe @MarcoPelle can anwear that?
Hi! 
Marco is on vacation, but I hope I can help you. The ParseCSV
component is helpful if you just want to use only the result file to avoid recomputing the whole model all the time. It should work for point support reaction results. I’ve attached a sample file to show you how to get the csv file from the working directory and use the ParseCSV
.
sample.gh (22.3 KB)
Let me know if you need further help.