48 Replies Latest reply on Feb 15, 2019 10:11 AM by Tony Tieuli

# Sketch a Square

Hi all

I just sketched a rectangle, it came in with equal relations making it square.  I must have sketched a zillion rectangles so guess was bound to happen one day.

It's a bit fiddly to do by eyeball.  I've always thought I was missing something here... is there an easy way to do this deliberately?

• ###### Re: Sketch a Square

Did you apply some equal constraints?  I'm in SW2015 and always wondered if I was careful would it snap it be a square.

Steve C

• ###### Re: Sketch a Square

Yep, you can:)  I just fluked it so the equal constraints were auto added.

In CorelDraw holding down CTRL constrains a rect to square, was just wondering if there was something similar in SW

• ###### Re: Sketch a Square

I guess you could be 'fluked' if you needed it to happen and it didn't. Didn't AutoCAD or another package maybe ProE (from 2002) have an option if you held the Shift key while dragging it would do so at 45 degrees and therefore be a square?

• ###### Re: Sketch a Square

Even MS Paint has this ability, using Shift.  I'm kind of surprised it's not a feature in SolidWorks.

I actually have the opposite issue from time to time.  If I draw a rectangle using to existing vertices (I do this quite a bit) and it happens to be a square, it adds the equal constraints automatically.  I noticed it once a while back after making some model changes that made the sketch over defined, and I had no idea where the equal constraints came from.

• ###### Re: Sketch a Square

Paint lol

In Sketchup you get a snap, either Square or Golden

• ###### Re: Sketch a Square

Golden Ratio rectangle - nicely done Google!

• ###### Re: Sketch a Square

Personally I would like it if it was construction lines that it was ignored with regard to 'automatic' constraints. Any of them really, why should I bother to correct it? Why does it show as "undefined" in the feature tree? Not a question or argument Matt just a general statement.

• ###### Re: Sketch a Square

If I could have it my way, I'd like the option to select which entities do/don't get them, as well as which relations can be automatically added.  I'd turn the whole option off entirely, but then you don't even get horizontal/vertical relations for lines.

• ###### Re: Sketch a Square

you can set it up for which relations you want to be automatic

• ###### Re: Sketch a Square

Sort of.  Turning those off does eliminate the subsequent automatic relation, but then you lose the snap feature, which I'd like to keep.  I guess I could rephrase my "if I had it my way" comment, I'd say I'd like to separate the "snap" and "automatic relation" functionality, though this is admittedly nitpicky as this is all just a minor nuisance.

Also, unchecking the "length" option does not eliminate the equal relations from drawing a perfect square.

• ###### Re: Sketch a Square

OK - let it snap, but before clicking to place the endpoint, hold control then click.

• ###### Re: Sketch a Square

Interesting, never knew that.  I tried it, but then it's the same as turning off ALL automatic relations (ie, I don't get a vertical line, just a line).

• ###### Re: Sketch a Square

You should have played the lottery today, now you're screwed   Never happened for me

• ###### Re: Sketch a Square

Not for me either in eighteen years

• ###### Re: Sketch a Square

It would be neat to have a "tick" box while creating it that make it a square.

Steve C

• ###### Re: Sketch a Square

Don't forget there is a Grid option, you can set the grid to your own spacing and set the Snap to Grid to On in Options.

• ###### Re: Sketch a Square

Happened to me on a few occasions and didn't realize until I went to dimension it.  Threw up the old yellow dimension.

Chris

• ###### Re: Sketch a Square

There has got to be some weird, hidden key combination to do this (if not, there should be.)

Even if it was something crazy like "Hold down Shift + Ctrl, drag the rectangle, Hit Scroll Lock, release the mouse button"

(You know, something that requires 3 hands, and nobody would ever remember the exact sequence!)

I'm a big fan of keyboard command "modifiers" . . .

todd

• ###### Re: Sketch a Square

Rob Edwards wrote:

Hi all

I just sketched a rectangle, it came in with equal relations making it square. I must have sketched a zillion rectangles so guess was bound to happen one day.

It's a bit fiddly to do by eyeball. I've always thought I was missing something here... is there an easy way to do this deliberately?

Yes.  Use polygon with 4 sides.

• ###### Re: Sketch a Square

OMG, best tip of the day right here.  You rock Dan

Steve C

• ###### Re: Sketch a Square

All together now . . . "Why didn't I think of that?!? Thanks Dan!"

t

• ###### Re: Sketch a Square

OMG, I don't want to work anymore today.  I just want to sit around and draw squares (and triangles, too)...

Steve C

• ###### Re: Sketch a Square

John Maybe I'm on a lucky streak..?  If it wins I'll split it with you all

• ###### Re: Sketch a Square

Oh boy - did I tempt fate

• ###### Re: Sketch a Square

But I would be glad to share with you if you win John Stoltzfus! LOL!

• ###### Re: Sketch a Square

I thought I head you say something - "whad ya say, now onct"

• ###### Re: Sketch a Square

...and converting fillets to chamfers!

(another one I somehow missed)

• ###### Re: Sketch a Square

Feelings are mutual Steve Calvert

• ###### Re: Sketch a Square

Todd Blacksher (you forgot)

Drum RRRRRrrrrrrrOOOOOooooooooooLLLLLLLLLLlllllllllllllllllllllllllllllllll  da Booom Boom boom da da da boom

Post that on the Tricks Thread Dan Pihlaja (awesome, who'da thunk that, ah Dan did)

• ###### Re: Sketch a Square

Another quick way is to use a keyboard short cut, draw your rectangle and hit the key for =

• ###### Re: Sketch a Square

Having your units set to only one or two decimal places makes it much easier to make that square.

• ###### Re: Sketch a Square

OK...If you have these options set this way:

Then, click one time to start the drawing of a rectangle:

Then, before you click a 2nd time, on your keyboard, hit a number, TAB (or ENTER), same number, and then hit ENTER, all without moving your mouse.  Example:, Hit 1, TAB, 1, ENTER (or 1, ENTER, 1, ENTER).  This will create a square with equal relations that you can now drag to any size you want.

If you have "Create Dimension only when value is entered" checked in your options, then doing this creates 1 dimension and an equal relation.

• ###### Re: Sketch a Square

It would be nice if they had a square option that didn't require adding any clicks, or constraints. or picking polygon, and selecting number of sides,etc...

This is something elementary that's been missing a long time.

• ###### Re: Sketch a Square

David,

You may disagree, and I'm certainly okay with that, but it's so simple to click and drag right-to left across a corner to select two sides and then make them Equal with the pop-up that I don't see a need for an extra command.

• ###### Re: Sketch a Square

Glenn Schroeder wrote:

David,

You may disagree, and I'm certainly okay with that, but it's so simple to click and drag right-to left across a corner to select two sides and then make them Equal with the pop-up that I don't see a need for an extra command.

I'm with Glenn, I have a feeling the extra option would add time/confusion to the standard rectangle option (of which there are now 5 choices!)

The first several releases of ProEngineer didn't even have a rectangle command . . . just sayin'

• ###### Re: Sketch a Square

It's not a huge issue.

I would have it as a whole separate sketch shape. Not an option in the rectangles.

• ###### Re: Sketch a Square

David Sloop wrote:

It's not a huge issue.

I would have it as a whole separate sketch shape. Not an option in the rectangles.

Psst....  4 sided polygon.    Its already there (although it isn't the same as the rectangle option.....but it is there):

• ###### Re: Sketch a Square

but, by definition, squares ARE rectangles

• ###### Re: Sketch a Square

Not if you do have the "Add construction lines" and "From Corners" options selected (which is my personal preference, for a couple reasons).

• ###### Re: Sketch a Square

Matt Gjertson wrote:

Not if you do have the "Add construction lines" and "From Corners" options selected (which is my personal preference, for a couple reasons).

That's true but in that case all you have to do is CNTRL select two adjacent sides and apply the = relation. Not much more difficult.

• ###### Re: Sketch a Square

Glenn Schroeder wrote:

...but it's so simple to click and drag right-to-left across a corner to select two sides...

I would go one step further, Glenn Schroeder.  You can skip the selection step by simply right-clicking on any corner of the rectangle to bring up the context menu.  Select Equal, and you're off!

~Kam

• ###### Re: Sketch a Square

Kameron Smith wrote:

Glenn Schroeder wrote:

...but it's so simple to click and drag right-to-left across a corner to select two sides...

I would go one step further, Glenn Schroeder. You can skip the selection step by simply right-clicking on any corner of the rectangle to bring up the context menu. Select Equal, and you're off!

~Kam

Thank you for pointing that out.  I just stumbled across this Discussion, and somehow your reply had slipped by me earlier.  I learned about that little trick in one of the sessions at World this week, but could have learned it months earlier if I'd been paying attention.

• ###### Re: Sketch a Square

Rob,

I'm glad you marked Kameron's answer as correct, but I also wanted to mention another option that might work for some instances.  If you have the options below selected, and if you'll enter the same value for each side of a rectangle while placing it, then only the first dimension will be applied, and an Equal relation will be applied instead of the second dimension.

• ###### Re: Sketch a Square

Another great tip Glenn

This forum is what makes SW so great!

• ###### Re: Sketch a Square

I thought we all decided that a 4 sided polygon was the best way to do a square.

Steve C

• ###### Re: Sketch a Square

Did we..?    Sorry

I really like the 4 sided polygon from a geometry perspective, but I think it's less clicks to select a vertex.

Although - I notice that the polygon command remembers the number of sides, so if you are sketching a lot of squares.. yes I agree.

Doh..  I should have just left it alone.  I'm gonna upset someone.  Story of my life hahhaha

• ###### Re: Sketch a Square

Steve Calvert wrote:

I thought we all decided that a 4 sided polygon was the best way to do a square.

Steve C

You can never have too many ways to skin a cat!