Two simple plugin ideas (symbol library, object placement)

Flesh out your ideas for new or improved Inkscape features before submitting a request.
alucard87pl
Posts: 1
Joined: Mon Aug 12, 2013 7:57 pm

Two simple plugin ideas (symbol library, object placement)

Postby alucard87pl » Mon Aug 12, 2013 8:27 pm

Hi guys. This is my first post here, so sorry if it seems unnecessary or stupid.

I have an idea for a two plugins that would greatly improve my work, and I'm sure some of you might also find them useful.

The first idea would be a Object/Symbol Library (think like the sidebar in Adobe Flash, where if you draw something you can save it, name it and easily copy it from the sidebar onto the canvas). My work boils down to dropping a rectangular shape (like 30x55 mm, but they can be as big as 150x150 mm) onto the canvas, adding some text to it (like, 5-7 lines, size 10pt) fiddling with the text (alignment, face, style, spacing, kerning) and making it fit within the shape. Theoretically, each shape I make is unique, but most of them follow a common template (as in, the first line is always bold, the second is italics, the third has reduced letter spacing because it's a long number that has to fit in one line, etc.). Up to now I have a "master" .svg with the shapes I need and it fills my needs, but having the symbols organized and categorized (Rectangles, Squares, Circles, Dimensions/Diameter, Lines of Text, Bordered/Border-less, etc.) would make it that much easier.

On a related note - sometimes we have to pull the shapes from an archive and currently we have to have a hard-copy of the shapes from a given day, find the shape on the hard-copy, get the hard-copy date and pull the shape from the file from that date. Tedious. Is there a way to search through .svg files for a string of text (as long as it isn't converted into curves, of course)?

The second plugin that I have an idea for would be a placement optimizer. As in, all the shapes on a page (or within a selection) would be rearranged to form the smallest possible footprint on the material. To simplify things, most of the shapes are rectangular, square or circular. No oddities.

I may be grasping at straws here, but these two bits of code would save me at least an hour of redundant work per day :)

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Two simple plugin ideas (symbol library, object placemen

Postby Lazur » Wed Aug 14, 2013 10:10 pm

Hello there!

In the current development build such symbol library function is implemented.

For rearranging alike, use the align and distribute panel (Ctrl+Shift+A).
Put all objects above eachother, and press the remove overlaps icon.
Not the smallest convex hull could be made out of it, as there is not an algorithm for that except bruteforce, but it may come handy.


Return to “Inkscape Ideas”