Re: Problems creating new SHAPES
- From: "Emil G" <evg_bul hotmail com>
- To: <dia-list gnome org>
- Subject: Re: Problems creating new SHAPES
- Date: Fri, 15 Feb 2002 09:49:58 +0200
Hi,
Thanks for the help. That solved the thing.
However, I strictly followed #28 in FAQ:
----------------------------------------------------------------------------
--------------------------------------------------
Extending Dia
1.. Q: How do I add new shapes/sheets?
A: An explanation is given in doc/custom-shapes in the source distribution
on how the shape format works.
However, Dia now also has the capability of exporting a diagram as a shape.
Each collection of shapes (called a sheet) should be kept together in a
subdirectory of ~/.dia/shapes, e.g, ~/.dia/shapes/Engines. To make a shape,
first design it in Dia. Then export it into your subdirectory. Two files
will be generated, a .shape file and a .png file (the icon). Next update the
corresponding sheet file in ~/.dia/sheets, in this case called
Engines.sheet. Example contents of a sheet file is:
<?xml version="1.0" encoding="iso-8859-1"?> <!-- -*- xml -*- -->
<sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns">
<name>Engines</name>
<description>Mechanical Engines</description>
<contents>
<object name="Engines - Gas">
<description>A gas engine</description>
</object>
</contents>
</sheet>
Each new object should be added to the sheet by adding an object section.
Next time you restart Dia, the new objects should show up in the list of
sheets.
----------------------------------------------------------------------------
---------------------------------
and there is not mentioned, that something should be changed in shape file.
May be it should be corrected.
I could not find what is error by myself, you know that on Windows, there is
no console ouput.
Best regards and many thanks
Emil Genov
----- Original Message -----
From: "Cyrille Chepelov" <cyrille chepelov org>
To: <dia-list gnome org>
Sent: Thursday, February 14, 2002 6:35 PM
Subject: Re: Problems creating new SHAPES
Le Thu, Feb 14, 2002, à 06:18:23PM +0200, Emil G a écrit:
shapes should begin with this
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
not
<shape xmlns:svg="http://www.w3.org/2000/svg">
Normally, dia complains about that in the log window.
-- Cyrille
--
Grumpf.
_______________________________________________
Dia-list mailing list
Dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]