Snap to line according center

I need to snap and center two rotated rectangles. I see only View-> Snap to Grid and View->Snap to Point. I suppose none of them are that useful for me. How can I snap the two rectangles together while centered relative to each other?

enter image description here

Answer

I presume these are two rectangle shapes, here is a way you can center them:

  1. Draw a line parallel to the side of one of the rectangles
  2. Select one of the rectangles, press Ctrl-T to show the handles and the center point
  3. Drag the rectangle to snap its center on the line
  4. Repeat steps 2 and 3 for the second rectangle
  5. Delete the line you drew in step one.

If these are rectangles rotated after drawing you may be better off doing the alignment while they are in their original position then selecting both layers and rotating them with the aid of free transform, Ctrl-T. Here is a screen capture to show the operation in progress.

enter image description here

Attribution
Source : Link , Question Author : vico , Answer Author : Community

Leave a Comment