Step Export sample code

Hi, In OpenNurbes document, I found the method “FileStp.Write” to write STEP files. Is this method working? Can someone please provide me a sample code to export the STEP model using this method?
Regards,
Monali

If Step export is not supported then please let me which other formats import and export is supported by OpenNurbes.
Regards,
Monali

Hi @monali.thete,

If you using Rhino 7, you can do this with Python:

import Rhino
import scriptcontext as sc
import os

def test_write_step():
    desktop = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop')
    path = os.path.join(desktop, 'test.stp')
    fwo = Rhino.FileIO.FileStpWriteOptions()
    Rhino.FileIO.FileStp.Write(path, sc.doc, fwo)
    
if __name__ == "__main__":
    test_write_step()

– Dale