Join and Group object selected with selboundary function

Hello!

I‘m looking for a script that is Running the following commands :

selboundary
Join
Group ( the joined curves )
Group the closes curve and the group of joined curves

It would be super usefull for creating lasercut files

I Hope a good Soul can help me

Regards

Jan

import rhinoscriptsyntax as rs

objs = rs.GetObjects('select objects',rs.filter.polysurface)
crvs = [rs.coercecurve(rs.DuplicateSurfaceBorder(o)) for o in objs]

So I’m not sure what you mean by grouping the curves. This couple of lines is essentially _DupBorder and you now have access to the variable crvs as a list of all the boundary curves already joined. What do you want to do next?