Sort list of geometries by name

Late to this party because I’m trying to integrate this with the OpenNest work eight days ago but failing so far. OpenNest is hung. :frowning: OH! 3.3 million pieces, that’s not right!

Here’s what I did for this thread, using Python instead of Elefront to get the names.

import Rhino
import scriptcontext as sc

sc.doc = Rhino.RhinoDoc.ActiveDoc
name = sc.doc.Objects.Find(geo).Name


sort_by_name_2022Oct9a.gh (23.8 KB)

And here’s the integration with OpenNest:



sort_by_name_2022Oct9bb.gh (35.1 KB)

1 Like