reversing/undoing path operations

Post questions on how to use or achieve an effect in Inkscape.
User avatar
ErikTiePie
Posts: 92
Joined: Fri Nov 21, 2008 10:52 pm

reversing/undoing path operations

Postby ErikTiePie » Fri Jan 16, 2009 8:12 pm

Hello all,

In order to create a table as shown below, I have drawn a white rectangle and for the "grid lines" I have drawn several narrow rectangles. I then used Path -> Difference to "cut" the lines out of the rectangle, resulting in transparent grid lines.

Image

Now I want to modify the table, increase the row height of one row, to allow for two lines of text.

So I want to "undo" the Path -> Difference, to get my white rectangle and the other "grid line" rectangles back, move some rectangles and apply the Path -> Difference again. Unfortunately, that appears not to be possible. (I can use the inkscape undo function right after applying the difference, but that's not what I mean, I want to save the file, open it again a day later and then undo the "difference" operation).

The final table will have two columns and 30 or more rows, with various heights, and several rows that have multi column span, which must be relatively easily maintainable afterwards. Initially I looked at many small white rectangles with text captions on them and arrange these in rows and columns. As my table was growing, that became worse and worse maintainable, so that's not the direction I want to go and now I'm looking for a better way.

I've been messing around with clipping and masking to achieve what I want, but up to now, failed miserably.


Any help is highly appreciated, thanks in advance.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: reversing/undoing path operations

Postby microUgly » Sat Jan 17, 2009 9:18 am

Difference isn't a state so it can't be removed or released.

A clip is like doing an Intersection which is why you are most likely having trouble with.

My recommendation is to use the object you've already created using difference, and when you need to make a cell taller, use :tool_node: to drag around a selection of all the nodes that'll need to move then drag them whilst hold Ctrl (so it only moves in one direction).

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: reversing/undoing path operations

Postby prkos » Sat Jan 17, 2009 1:57 pm

Create clones! If you will have 2 different row heights make a separate rectangle for each row height, then just clone that rectangle to get other cells. Use grid to align the cells instead of complex path cutting. If you use grid with snapping from the beginning you won't have to clone, because rectangle will snap to grid as you're creating it and it will be easy to create exact same rectangles.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download


Return to “Help with using Inkscape”