Thanks @dsonntag and @piac for your replies.
I’m quite new to C# so please bear with me here when I have some follow up questions.
I tried to implement the code snippet you send @dsonntag and first of all the AddRuntimeMessage didn’t work, so I replaced it with a Print() line instead. What do I need to modify to make that line work and also If I make this work would this give me an error message directly on the GH component instead of printing the error in the out as my line does?
Have I understod it correctly when I say that this is a function/method that I should write under //costum additional code ? And to execute the function I obviously have to call it in my main code as ExportSat(x, y);, but this alone does not export the file though does it?
Lastly, if I want to export the brep in an other format can I then simply replace .sat with .stl, .dwg, .dxf, etc.?
I managed to figure this out on my own. By replacing the suffix I export the brep’s in a different format and I had written the path incorrectly so I didn’t see the export, i.e. it is enough to call ExportSat(x,y); to export the files. However, the first question remains.