Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to draw this shape in Inkscape:

enter image description here

The line coming from the side needs to be aligned to exactly the middle of the edge, coming out at a right angle.

It must also be part of the rectangle object, so that when I alter the color or width of the line, I don't have to do it separately for either object (the line and the rectangle).

What is the simplest way of drawing a line outwards from the centre of a rectangles edge, and then combining the paths, in Inkscape?

share|improve this question
up vote 2 down vote accepted

Align and distribute

  1. Draw a stroke and a box in random order

    enter image description here

  2. Select stroke to make it horizontal by adjusting its height to 0 in the top toolbar

    enter image description here

  3. Adjust stroke style width (Object > Fill and Strike) to desired values

    enter image description here

  4. Choose Object > Align and Distribute tool

    • relative to biggest object (or first selected depending on workflow)
    • align right edges of the object to left edges of the anchor
    • align center on the horizontal axis

    enter image description here

    enter image description here

  5. Select both the line and the box to then choose Object > Group Ctrl D

  6. Now changing fill or stroke of this group will affect all children

    enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.