I would like to accomplish the following in Shaper or Geom modules.
Every time an object (e.g. shell, face, solid, etc.) is to be exported, a dialog box pops up and asks for path and file name. This is not an efficient way of exporting hundreds of entities at once. Is there any way to set the saving path once for a selection of objects and let the export use the object names assigned by Salome, e.g. Solid_11, Solid_12, etc.?
this should do the work (in geometry module).
notebook = salome_notebook.NoteBook()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
for i in range(n_Selected):
geompy.ExportSTEP(selected_object, exportPath+selected_object.GetName()+".step", GEOM.LU_METER )```
Thanks a lot. Works like a charm.