Re: Adding objects to Dia



On Sun, 2006-07-16 at 17:56 +0100, Nick Moore wrote:
Hey Leon,

To add elements to Dia, you do make them with SVG. You also need a PNG
representation, which is used as the icon in the menu.

To create a set of shapes, you'd want to go into Dia, (in the main
window of Dia) File/Sheets and Objects and play around with that. It
can create a sheet file for you (New, then select the sheet option,
which will allow you to create a new "set" of shapes). Then you import
your shape files. 

You might also want to look at some examples (in the install directory
for Dia, the default shapes are stored in the (shock horror) shape
directory).

A couple things to look for:

Make sure to define a mainpoint for all shapes where it makes sense
(since 0.95).
Make a .sheet.in file so that it is easily translatable.
Don't just trust automatic generating of PNG and connection points from
exporting as shape, but it's a good start.

-Lars





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]