I have a VB component that creates a text file with geometry data from Grasshopper. It is triggered by a push button, so that it just runs once per “push”.
This output text file is then imported, together with a definition file, into another 3D software for further treatment.
That definition file has a fixed content and is today provided together with my component, but the most frequent user error is that they forget to place the definition file in the same folder as the output file created by the component. (The location & name of the definition file is referenced to in the first lines of the output file, so it all needs to be consistent)
Now, to solve this, I was thinking about storing the content of the definition file in a panel component, and to just have my component spit out the content of that panel as a definition file together with the main file, in the same folder, to reduce user errors.
The problem is that the panel cannot apparently handle the full content of the file (roughly 150 KB), it seems to have a size limit (I saw other topics on the forum related to this).
So… what would be the best way to proceed in your opinion?
The most elegant solution would enable the whole process to be hidden from the user: no need to deliver the definition file with the component if it’s somehow “baked in”, don’t show it in GH, and write it with the right name and in the right place so that it all “just works”.
In earlier days, I implemented a similar solution in Excel VBA: I would then place the content of the definition file on a separate, hidden tab, and through VBA dump the content of that tab, line per line, to the hard drive.
Thanks in advance!