How to create holes with pipe in a lattice grid

Hi, I have created a lattice grid based on a surface from Rhino in GH. The issue I’m facing is that the lattice does not take into account the holes i punctured into the surface and instead wraps the whole surface. Is there a way for the lattice to recognize those boundaries.?



Lattice from Punctured Surface.gh (21.8 KB)
Punctured Surface.3dm (726.0 KB)

you could use something like Pull Curve for that:

but note that by pulling Lines into a doubled curved surface, you will end up with all Curves instead of Lines:

Lattice from Punctured Surface_Re.gh (10.3 KB)

ah very interesting, I appreciate it.
I was using this to bring into Revit, so I ended up just modeling a wall around these “entrances”

I’m gonna continue building the script though.
Thank you