importfile_controllerasfcimportelement_controllerasecimportostarget_path='C:\\Users\\YourUsername\\Downloads\\RhinoExports\\'try:create_direction=os.mkdir(target_path)# replace YourUsername with your username on your PC or add another directory # mkdir will create a folder with the Name RhinoExportsexceptFileExistsError:# excepiton handling - if folder exists print("Folder already exists!")# path to the new file file_name=target_path+'TestExport.3dm'element_ids=ec.get_active_identifiable_element_ids()fc.export_rhino_file(element_ids,file_name,6,True,True)