Is there a shortcut to add sketch relations suggested by SolidWorks?

Whether you are in the drawing or model view, SolidWorks will bold one of the relations in the Add Relations box once you have selected at least 2 lines.
I assume this is SolidWorks' way of suggesting the most probable/ logical relation to add.  Is there a button I can press to accept the suggestion?  Enter, Tab, Ctrl or Shift don't seem to work.


As you can see below, I have selected the two lines on the right and left of the shape and SolidWorks has bolded the Parallel relation on the right side of the screen.  There must be a key I can press to use that relation instead of having to mouse over and click it.  I know this sounds trivial but it will drastically speed up my sketching since I have a TON of simple shapes to draw.

Edit: While in a part file this method doens't matter too much since you get the add relation pop-up menu right next to your cursor after selecting multiple lines.  However, while in a drawing file, there is no pop-up menu so this shortcut that I am asking about would really speed things up for me.

SolidworksSketching
Answers 12
GS
GS 2014-01-14 Best Answer

When you Ctrl+select your sketch entities, if you will then release the Ctrl button you will get this pop-up box (with available relations in the top row and actions in the bottom row) in the graphics area.  Choose which one you want.  This is only for models, it doesn't work for drawings.

comment imagecomment image
MK
MK 2014-01-14

Yep, i realize you can do that while in a part file.
But like you said, that option is not available while in a drawing file for some reason
I would really like a faster way to add relations while in a drawing.

KL
KL 2014-01-14

In your particular example you could use the 3 Point Corner Rectangle or 3 Point Center Rectangle sketch tools.

Or you could use a macro which specifies the type of mate constraint prior to picking the sketch elements.

GS
GS 2014-01-14
<p>Mitch Kramer wrote:</p><p></p><p><br> I would really like a faster way to add relations while in a drawing.</p>

I don't know of any.

KL
KL 2014-01-14

You can assign keyboard shortcuts to all the sketch constraints.

Or you could just draw the lines parallel to begin with. 

comment imagecomment image
JA
JA 2014-08-07

I feel your pain Mitch, I'm trying to figure this out too.

Yes, we are aware that there are workarounds.  But the fact remains that for example if you ctrl select two line endpoints, the add relations thing opens under properties tab on the left of screen, and available relations are listed with the first letters underscored, which in my somewhat elderly computer experience means that you can somehow choose one with the keyboard, but I cannot get it to work(short of custom programming hot-keys).  I'm assuming that I am doing it incorrectly.

Or is the answer that the underscored initial is in error?

I probably will take Kelvin's excellent advice and program my own, but there must be a way to ping those underlined initials, or no?

JM
JM 2014-08-07

Or, perhaps ‌ can add this to his 'to do' list for drawings.

MC
MC 2014-08-07

Most of these relations can be selected via keyboard by holding down Alt and pressing the underscored letter (all without adding custom keyboard shortcuts).

-Matt

JS
JS 2014-08-07

Nice catch about he underscores Jay. After some playing around I figured out that with the lines selected you can press alt and the underscored letter to add that relation. This works for any of the listed relations there. What's weird for me, though, is that if I drag a box to select two lines the relations are listed without the underscores. Then if I add a relation and undo (so the lines are still selected) then the underscores appear. That's got to be a bug. I'm on SW2014.

dragged a box around two lines:

add equal relation and then ctrl+z to undo:

But even when the letters aren't underscored the alt+letter still works, you just need to have memorized the letters.

comment imagecomment imagecomment imagecomment image
JA
JA 2014-08-07

Jamil, the alt key doesn't work for me.  Maybe you have your shortcuts programmed to use the alt key?  Maybe the standard out of the box setup they are programmed that way and I have reassigned those shortcuts to other commands?

All that said, I went in to reprogram shortcuts as Kelvin suggested, problem is I'm already using most of them for more commonly used commands.

I did notice Jamil that sometimes the underlines don't show up as you mention.  My example is I have two lines I sketched for this discussion, I ctrl select a couple of the endpoints and the underscores show up, select one same endpoint and one different one and they don't show up, seems to be no rhyme or reason.

EB
EB 2014-08-07

Mitch,

This got me playing around a bit, and I discovered that for sketch entities in a drawing that are outside a drawing view, control selecting and then RMB gets a big pop-up menu with relations. among other things.

After reading Jamil's post I played around some more (I'd looked for underlines too and not seen any) I found the same sporadic underlining behavior.  I then found that if I make sketch entities in a drawing view the option to add relations only shows up if my cursor is still on one of the selected entities when I RMB.

Definitely a bug in there somewhere.

comment imagecomment image
JS
JS 2014-08-07

When I look at my keyboard shortcuts there is nothing assigned to those relations, so I think it's just hard-wired into SW. I don't know why it wouldn't work on your PC, unless there's some weird compatibility issue with your keyboard.

comment imagecomment image