I created an SVG with a bunch of objects, I want to break up

General discussions about Inkscape.
jmkeuning
Posts: 15
Joined: Sun Nov 11, 2012 2:22 am

I created an SVG with a bunch of objects, I want to break up

Postby jmkeuning » Fri Dec 21, 2012 8:04 am

Basically, it is like a story, with one "page" after another. I want to break this big SVG into smaller files. I know I can create a series of empty SVGs, and then copy and past content into them, but I would love to be able to select the content within the SVG, and use some sort of Save Selection feature. Any advice on how to speed this up.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: I created an SVG with a bunch of objects, I want to brea

Postby brynn » Fri Dec 21, 2012 8:54 am

All I know about is File menu > Save a Copy, which probably presents few better options, if any. But if there are a large number of objects, perhaps a script could be written?

User avatar
shawnhcorey
Posts: 149
Joined: Mon Jan 07, 2008 12:17 pm

Re: I created an SVG with a bunch of objects, I want to brea

Postby shawnhcorey » Fri Dec 21, 2012 11:16 am

You have to do this in the same instant of Inkscape:
  1. Open the SVG document.
  2. Start a new one.
  3. Switch back and select the items you want for the new doc and copy them to the clipboard.
  4. Switch back and Edit > Paste in Place (The items should appear in their original positions).
  5. Repeat until done. :)

Jelle
Posts: 78
Joined: Sat Nov 06, 2010 11:25 am

Re: I created an SVG with a bunch of objects, I want to brea

Postby Jelle » Fri Dec 21, 2012 4:12 pm

Alternatively:

- Make a backup copy of the document (just in case you're like me)
- Select everything except the part you want to keep and press CTRL+C
- Pres DEL (unfortunately CTRL+DEL doesn't work in Inkscape)
- Save as newfilename
- Press CTRL+V

- repeat several times.

The advantage is that you don't have to start multiple instances of Inkscape

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: I created an SVG with a bunch of objects, I want to brea

Postby brynn » Sat Dec 22, 2012 12:58 am

I guess we didn't ask about your ultimate goal. I wonder if using Layers would help you?

Hhmm....so much depends on those ultimate goals. If you are planning to export those docs to PNG later, it IS possible to export selections (and have no need for new docs).

jmkeuning
Posts: 15
Joined: Sun Nov 11, 2012 2:22 am

Re: I created an SVG with a bunch of objects, I want to brea

Postby jmkeuning » Sat Dec 29, 2012 2:56 am

brynn wrote:I guess we didn't ask about your ultimate goal. I wonder if using Layers would help you?

Hhmm....so much depends on those ultimate goals. If you are planning to export those docs to PNG later, it IS possible to export selections (and have no need for new docs).


This is exactly what I want to do... and Export Selection is exactly what I needed. Thanks!


Return to “General Discussions”