Mating a square/rectangular pin within a round hole feature

Hi folks,
What is the best way to mate a square/rectangular pin featuresymmetrically within a round hole feature? My assembly consists ofa PCB part (with hole features defined) and through-hole componentswhich have square pins.

I'm sure there's a simple solution, but I just can't see it. Thanksfor your help!SolidworksAssemblies
Answers 9
RJ
RJ 2008-12-03 Best Answer
if you want to mate the 2, i'd create a axis on the center ofthe square.
TP
TP 2008-12-03
I usually add a point to the center of the square then matethe point to the hole concentric
RS
RS 2008-12-03
You can do this with a "Width" mate. Actually, you would needtwo width mates to do the job. The advantage is that you need noextra geometry, you can just use the feature faces. Disadvantage isthat it is tedious.
CC
CC 2008-12-03
The old square peg/round hole bit, eh?

To add on to what The Tick said, the easiest way would be to selecttwo opposite sides of the square peg, then select the ID of thehole. Then initiate the "Mate" command. This will automaticallybring up the appropriate "Width" mate. Then you can exit out of the"mate" feature manager. Select the other opposite faces and ID, andthen hit the mate tool again. For me, this is quicker than tryingto select the items after initiating the mate tool, and lets theSolidworks AI figure it out.
SF
SF 2008-12-03
Thanks guys, some good suggestions here - all of them work toa certain degree. The "Width" mate looks like the best option,especially when you pre-select the faces before starting thecommand. It's easier to use the existing geometry rather thanadding a sketch just for positioning.
SF
SF 2008-12-04
If the square pin was modeled symmetrically around the origin(which, imho, should be done 99% of the time to solve these'problems') you can:

1) Create an axis with 2 of the planes of the peg. Mate the axisconcentric with the hole or coincident with the temp. axis of thehole.

or:

2) Mate 2 of the planes from the peg coincident to the temp axis ofthe hole.
SF
SF 2008-12-04
Go with the axis, if modelled 'correctly' its easier toachieve and if you change the squre or peg for any reason itremains mated!
SF
SF 2008-12-04
This is a valid question, but it reminds me of the IQ testFred Flintstone took in one of the Flintstones episodes...
SF
SF 2008-12-11
Just reminds me of that old saying..."you can't put a square peg in a round hole"...hehehe sorry Icould not resist that one.
Tony Carter
down under