Re: Question on adding shapes



Further to this, please find attached what I got so far: 
- Dia source files 
- Sheet and shapes. 

Seems to be working ok, except for two things: 
- The text that I added to the Dia source files doesn't appear when added the respective shape. The text is 
there in the SVG code, though. 
- The Icons seem to expand vertically to fit the size of the PNG icon, but not horizontally. Is this by 
design? 

BTW, this files are not meant for publication, yet. I have to check with the original author first to see, if 
he is ok with adding these shapes under GPL.  

Cheers, 

Martin
 

Attachment: Dia_Files.zip
Description: Zip archive

Attachment: Sheet_and_Shapes.zip
Description: Zip archive



Am 10.09.2012 um 11:36 schrieb Andrey Repin:

Greetings, Martin Wunderlich!

I have recently discovered Dia as a tool to create recipe diagrams as per
the design by Sascha Wahlbrink (
www.saschawahlbrink.de/index.php/ein_kochbuch.html )
In order to make the creation of these recipes easier, I wanted to create a
number of custom shapes and add them to a new Dia sheet. I have been able to
create a shape and export it. I have also created a new sheet. However, I am
stuck now in trying to add the shape to the sheet so that it shows up in the
object selector. There seem to be two problems:
- I am not able to add the shape using the built-in dialog, because the .dia
directory is hidden on the Mac and is not showing up in the selection dialog.

You can always enter the path manually.


- Adding the shape manually by editing the sheet XML doesn't seem to work,
because there is not pointer to the shape file ( I have posted my sheet XML
below).

You could attach your files next time. Would be way faster to give your code a
try.

Any ideas what I might be doing wrong?

Simplest answer I can give is "you have your files in wrong place."
On Mac, the path is likely
~/Library/Application Support/Dia
Check that the directory contains other Dia files.
If all else fails, I've attached a very simple sheet, that should get you
started.
Shapes are linked by shape name, not by file name.
Also, you're missing category name in your shape names. That could be another
case for it to not work.


--
WBR,
Andrey Repin (anrdaemon freemail ru) 10.09.2012, <13:23>

Sorry for my terrible english...<dia-Hazeron-2011-11-06.zip>_______________________________________________
dia-list mailing list
dia-list gnome org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia




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