Array of objects inside a polyline boundary civil3d

Hello,
I’m a beginner in dynamo scripting and I’m trying to build a code to automatically place rectangles inside a polyline boundary.
Is there possible to check if an object (rectangle in my case) is inside a boundary?
Can anyone help me with a sample code?

Thanks, everybody.

" All Intersecting Elements of Category By BoundingBox" from clockwork package maybe?

Convert your polyline to a surface and check for intersection.

Sadly that is a Revit node so it won’t work.

Leveraging boolean intersection tests as @Nick_Boyts noted is the way to go. :slight_smile: