Export baked geometries into individual files

Hi, first time posting. I’ve created some geometry and managed to bake them separately and get their ID’s. I’m trying to export each geometry into individual files. It’s for 3D printing and I have 120 geometries, doing it manually its exhausting. I’ve tried with the Elefront addin, but I feel I’m almost there, like the same file overwrites over and over. Can anyone please give me a hand? I’m trying to get a single .stl for each geometry.

atraccion traingular2.3dm (2.0 MB)
atraccion.gh (19.2 KB)

There have been several threads recently on this subject, try the search feature.

P.S. I’m no expert at the Pancake plugin or .stl files but I modified the earlier file with interesting results… All but one of the geometries are ignored for some reason? Only the last one in each branch is exported. No idea why?

export_boxes_2023Sep21a.gh (18.3 KB)

1 Like

I adapted the code to work with your GH file. Point is internalized, no need for Rhino file.


atraccion_2023Sep21a.gh (19.7 KB)

Note the Mesh Join (yellow group) that merges your extrusions (120 of them) into a single geometry (mesh) to be exported.

Also, I added several primitive geometries as a test: box, cone, cylinder and sphere. This code produced the following inconsequential error messages:

  1. Target file already exists. If you want to export a series of STL files, consider using ‘Filepath Series’ component.
  2. The mesh is not closed. [cone and cylinder?]
1 Like