Inkscape.org
Beginners' Questions Path Difference does not work as expected
  1. #1
    nschagen nschagen @nschagen

    hello everybody,

    I'm designing a panel that should be lasercut and I want to cut out a rectangle out of the side of a bigger rectangle. I have both rectangles in an SVG file which was exported from a 'front-panel designer' program I am using. What I want to achieve is indicated by the blue lines and I believe 'difference' should be able to do that.

    However, when I use difference, the big rectangle disappears and I only get a tiny rectangle that is crossed out in red. I tried selecting the shapes in different order but it didn't work.

    I have attached the SVG file. Can somebody enlighten me on how this is done?

    Thank you very much!

  2. #2
    Xav Xav @XavπŸ‘Ή

    You're on the right lines, but Inkscape's determination of which object should be removed from which is based on their relative z-index positions, not the order in which they're selected. Try selecting the smaller rectangle and moving it up in the z-stack (e.g. press the Home key to move it right to the top of the stack), then use Path > Difference again and it should do what you expect.

  3. #3
    nschagen nschagen @nschagen

    Thank you so much! Sorry for the late reply but this really helped me finish my work πŸ‘ πŸ‘

  4. #4
    Revera Johns Revera Johns @Revera398

    Thanks for telling XAV .....I also got stuck here but now everythings fine after read your answer.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Path Difference does not work as expected