Make a shape from lines that enclose an area
Select loose lines that enclose an area and make one closed polygon of the area they enclose, keeping the lines.
How-toIntermediate3 minMenu: Modify › Combine into Surface
Plans often come in as loose lines: four walls drawn as separate strokes, or an outline whose ends overshoot the corners. Combine into Surface makes a closed polygon of the area those lines enclose, so you can fill it, measure it or use it as a boundary. It finds where the lines cross, so the ends do not have to meet exactly.
Steps
Select the lines. Here, four lines form a rectangle with their ends overshooting the corners. Drag a box from the top right of the lines to the bottom left, so that it touches all four.
Choose Modify › Combine into Surface.

A polygon is added along the area inside the lines. The lines stay where they were. In the picture the new polygon is selected, so its outline shows.

Look at Object Info for the new shape. It reads Polygon, and Closed is ticked.

Tips
- The lines are kept. Delete them if you want only the polygon.
- To join two closed shapes into one, use Combine two closed shapes into one instead.