Nesting Text Objects in Open Nest

Hi I want to NEST text objects with open nest but the holes in ‘8’ and ‘4’ are nesting as separate items.
see below

I have tried with the GUID component but this will only accept certain letters and numbers

any advice would be most apprciated

The GUID component works with ‘4’ and ‘M’ but not the other text objects!

You can nest shapes with holes by using the Boundary Surfaces component to create surfaces from your curves.

-Kevin

2 Likes

The Rhino Objects component from the OpenNest plugin expects outer boundaries that are polylines it does not work if the outer boundaries are curves. This is why you are only getting the “4” and “M” characters.

See the tutorial video here:

-Kevin

1 Like

Hi, I built this script based on the tutorial video above. The labels (text objects) are coming in random and the processing time is about 20 minutes for 40 objects (closed curves with text objects inside).

Can anyone offer any isight into how i can fix this?

open nest rhino script.gh (19.7 KB)
1TWA CLEAN.dxf (4.6 MB)

how big are your sheets? they are not internalized

consider that your curves are SUPER COMPLEX, so you want to create a sort of simplified twin of each of those

in red the simplified curve (73 points) , in blue the original one (709 points):

then you can nest the simplified twins (in such a way it takes 3 seconds instead of 20 minutes) and after that you bake the final result where the twins are replaced by the original ones (you just use the Transformation info generated by the simplified curves to nest the original, complicated ones)

open nest rhino script_Re.gh (18.5 KB)

2 Likes

Hi Inno, Thankyou so much for time time and effort on this. I really appreciate it :innocent::raised_hands:

Your solution of Substituting the complex curve for a simple curve to do the nesting, and then you even replace the complex curve. It is no less than genius. I’m thoroughly impressed by your skills.

The script has been working well for me. I am still having issues when I am nesting a lot of parts where they appear on the sheet in the Grasshopper nest, yet when I bake them with the bullion toggle, some of the profiles with their labels, appear off the sheets. I have been manually moving these back on.

I hope eventually to have the sheets bake with the profiles and the Labels.

I read on another post, that working far away from the origin can be an issue. I’ve been intentionally moving my parts closer to the origin. As I am trying to nest 130 2m Parts, I need a lot of space to set them all out. As I moved the parts closer to the I have less errors.

I don’t know if the following might help or is just useless, I never had troubles with geometries too far from the Origin so give this a try if you would, but without too much expectation :slight_smile:

this is a sort of fake jump that makes each geometry bounce to XY plane before being nested :slight_smile:
you are not nesting these:

but these, overlapped stuff, centered on XY Origin (wherever they are on the Rhino canvas, they will be placed at XY Origin point first):

indeed, when it’s time to apply the final transformation to the original geometries, you have to take into account both that jump transformation, and the one that results from the nesting process:

I really don’t know if this will work at all or improve the results, but I think it’s worth to give it a try

open nest rhino script_Re_Re.gh (21.4 KB)

Hi Inno, It’s taken me a hot second to loop back to this. I’ve been working on it and have found that exporting a .dxf with 2007 Polylines helps. The labels are still not showing up. I’d really love to nail this work flow. I’ve added curves for the sheets and slider to set the sheet size. I bake the sheet sepertely
TANK STALAGMITES CNC.dxf (1.3 MB)
open nest rhino script_Re_Re_Re.gh (30.5 KB)

happy to help :slight_smile: I see two issues with the dxf file:

  1. some curves are not closed but shattered into smaller parts
    to solve this, in Rhino, you can just select all (CTRL+A) and Join (CTRL+J)
  2. text is not on the same plane (Z coordinate) where the curves are
    to solve this, in Rhino again, just select all (CTRL+A) then under the Transform menu select Set XYZ coordinates, and in the small window that pops-up right click on Z, click OK, type 0 (the digit zero) and Enter
    this way everything in your drawing will be sent to coordinate Z=0 (I assume all your curves are already XY planar)

at this point, just a fast tweak of some numbers in the GH definition (expecially Rotations: the value was 180, which means increments of 2 degress, which is fine, but might take MUCH TIME to calculate :slight_smile: I lowered to 16 rotations and it takes about 15 seconds to succesfully nest in my pretty old laptop, so I guess it’s ok for testing purposes, it works :+1: )

I would suggest to try to apply the above 1) and 2) commands on the original dxf in such a way to test everything to be working fine also on your side, anyway here is the same dxf file with those commands already applied, just in case

TANK STALAGMITES CNC_joined_Z_zero.dxf (2.2 MB)

and here is the gh file with lowered settings (the gh file you posted works just fine, it will just take much longer to spit out a solution because of the 180 rotations and the many iterations)

open nest rhino script_Re_Re_Re_inno.gh (19.1 KB)
the whole process (comprehensive of 15seconds waiting time for the nesting solution) for reference: