A rectangle is not formed from the points shown in the image. I selected all of them in a clockwise order. The command works when the size of the rectangle is slightly reduced.
Looks like the points might not quite be 90 degrees to each other.
Is there a reason you need a rectangle instead of a polygon?
I am creating stirrups from rectangles. I haven’t used polygons before. Is there a command that works in the same way as Rectangle.ByCornerPoints?
Polygon.ByPoints
Assuming your pulling Revit geometry to build the shape, check if the initial shape is either off axis or has some degree of shape editing at play. I have seen many examples where cleaning up the base Revit content usually resolves such issues.
2 Likes
