I am new to Solidworks. I have a flat rectangular base and want to mate a smaller assembly to its' top surface. I want the cube to be aligned with the left edge of the plate, but centered. How is this best done?
Use distance mates.
if you would model both plates with the origin in the middle of the matting faces, you can use the origin to mate or the top and right panes along with the face of each part.
so use the sketch retangle with the center point, set it to the origin, extrude the green down from the front plane, then do the same for the blue one but extrude up.
Thanks for the answer Lenny. Your solution would work. What if I wanted to align the cube X mm from the lhs and Y mm from the top?
Ray Cri wrote: I want the cube to be aligned with the left edge of the plate, but centered. How is this best done?
Ray Cri wrote:
I want the cube to be aligned with the left edge of the plate, but centered. How is this best done?
Of course it would, you asked best way to get them centered and a distance mate isn't because if the cubes change size you would have to constantly change your number of the offset, using the panes is the best as no mater what size they will always be centered.
Lenny you are right. My question was worded badly. I was looking for a more general solution and I found that a distance mate to the center of the cube was the solution I was looking for.
Again if the blocks are not built with the planes in the center from the get go the width mate still doesnt work, you would have to create new planes before it would work.
design intent!!!! build it correct the first time and less messing with later.
You could also use the width mate, located in the "advanced" tab.
Distance mate is not preferred, as the cube moves from center if you increase or decrese the size of the rectangular plate. Best way would be Width mate as suggested by Mr.Marco, or symmentry mate or mate using planes (if u have drawn using " centre rectangle" and extruded using "mid plane")
Although I use Lennys method 99.9% of the time, you could also mate to the midpoints of both outside edges. Always think symmetry when designing. It will pay dividends many times over down the road.
Retrieving data ...