I’m working with a C# plugin and I’m converting geometry from Rhino format to step format, then using that format in another library. I know that there is a Rhino.FileIO.FileStp.Write() method that will write the Rhino geometry to a step file. However, I’m wondering if there is a way to generate the step file text, stored as a string, StringBuilder, byte array, or some other format in memory, and return that instead of writing the file. For my use case, writing the file is simply another unnecessary step (ha!) in the process that takes time, as I first have to write the file, then read it again.
I cannot find a method to do this. If there is not a method, I feel like it would be an easy addition, as the underlying methodology already exists, but instead of writing the string to a file, it simply gets returned via the method call. Thoughts?