Areas boundary not closed

When you get the Area boundary lines they might not be a closed boundary since Areas can deal with that.
Any idea how to close the missing segments?

This should work assuming all your room bounds are straight:

  1. Extract the endpoints of all the curves
  2. Extract the startpoint of the first curve and insert it at the start of the point list
  3. Create a new polygon from the point list using Polygon.ByPointList()

Thanks Thomas, that’s what i ended up doing :slight_smile: