No one else has this question

First of all....there is a big difference between adding a dimension to the endpoints of a line....and adding the dimension to the 2 side edges of a square.

What you have done is add the dimensions to end points of the line.

Next, Solidworks has a rectangle tool. Use that....it adds in all the relations you need to keep the rectangle a rectangle.

Dan Pihlaja wrote:

First of all....there is a big difference between adding a dimension to the endpoints of a line....and adding the dimension to the 2 side edges of a square.

What you have done is add the dimensions to end points of the line.

**Next, Solidworks has a rectangle tool. Use that....it adds in all the relations you need to keep the rectangle a rectangle.**The diagonal construction lines and the sketch point on the Origin in the screenshot make me think that started out as a Center Rectangle that's had all the relations removed.

In the example you showed I'd recommend midpoint relations between the Origin and each of the diagonal construction lines, then horizontal or vertical relations on the other lines as needed. In addition to maintaining the shape of the rectangle, those will serve to lock it's position in space.

Glenn Schroeder wrote:

In the example you showed I'd recommend midpoint relations between the Origin and each of the diagonal construction lines, then horizontal or vertical relations on the other lines as needed. In addition to maintaining the shape of the rectangle, those will serve to lock it's position in space.

Dan Pihlaja and Glenn Schroeder, I must have misunderstood. I thought the OP was asking how to keep a square, square.

Tony Tieuli wrote:

Glenn Schroeder wrote:

In the example you showed I'd recommend midpoint relations between the Origin and each of the diagonal construction lines, then horizontal or vertical relations on the other lines as needed. In addition to maintaining the shape of the rectangle, those will serve to lock it's position in space.

Dan Pihlaja and Glenn Schroeder, I must have misunderstood. I thought the OP was asking how to keep a square, square.

A square is a rectangle......but a rectangle is not necessarily a square.....therefore...we were still right.

There have been some great suggestions on getting SW to create the sketches with relations but I wanted to throw out a feature on how you can fix this after the assembly has been created. In the sketch you can use the 'Fully Define' command (Use the search bar on the top right of your SW Window). It can add the relations and/or dimensions for you.

add restrictions like vertical or horizontal