Nesting Window frames for an Architectural model using OpenNest

Hello, community

I am trying to nest the window frames but I encountering several problems and errors, could you kindly please help?

  1. Setting a Cplane to flatten the frame that modeled at an angle

  2. 1. System.NullReferenceException: Object reference not set to an instance of an object.
    ** at OpenNest.OpenNestFullComponentCleanUp.SolveInstance(IGH_DataAccess DA) in F:\BackUp\MEGA\OpenNest-master\OpenNest-master\OpenNest\OpenNestFullComponentCleanUp.cs:line 259**

  3. Last but not least, Is there simple way I can bake the external and internal curves in two different layers as indicated in the screenshot

Citra Houses - Nesting.gh (51.8 KB)
Compressed .3dm filePH14 - Cluster_4(AB) by VM.rar (13.3 MB)

@inno @Petras_Vestartas

regarding the nesting, you can use just the external outline of each window frame, and sinchronize the inside curves only after the nesting is completed

this means that you can Deconstruct Brep on all your starting shapes, take the Edges, Join Curve on them, sort that list by -reversed- Curve Length and split list at index 1

use List_A (only the items at index 0) for the nesting

after the nesting, apply the Transform output to List_B

using Curve Length does not always guarantee you get the external boundary: the best approach would be to use Area Centroids containment, but as your windows are all rectangles (and not strange snakes) using Length should work fine in this case

opennest_transform_inside_curve.gh (23.6 KB)

1 Like

:star_struck: Thank you very much for the straightforward solution.

@Vhuhwavho_Moraba_Mul @inno
A good way to extract the exterior curve.

1 Like

Thank you for that! :heart_eyes: