Problems creating new SHAPES



Hi all,
 
I've tryed to extend the set of shapes:
 
1)I've draw a shape in Dia
2)Create a directory under <user_profile>/.dia/shapes/Test_fig
3)Save a figure there as test.shape and test.png
4)The content of test.shape file is:
----------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:svg="http://www.w3.org/2000/svg">
<name>shape - Test</name>
<icon>Test.png</icon>
<connections>
<point x="7.75" y="7.6"/>
<point x="7.75" y="3.8"/>
<point x="2.9" y="5.7"/>
<point x="12.6" y="5.7"/>
<point x="7.75" y="7.6"/>
<point x="7.75" y="3.8"/>
<point x="2.9" y="5.7"/>
<point x="12.6" y="5.7"/>
<point x="11.1795" y="4.3565"/>
<point x="4.32053" y="4.3565"/>
<point x="7.75" y="4.3565"/>
<point x="11.1795" y="7.0435"/>
<point x="4.32053" y="7.0435"/>
<point x="7.75" y="7.0435"/>
</connections>
<aspectratio type="fixed"/>
<svg:svg>
<svg:ellipse style="fill: #ffffff" cx="7.75" cy="5.7" rx="4.85" ry="1.9"/>
<svg:ellipse style="stroke-width: 0.1; stroke: #000000" cx="7.75" cy="5.7" rx="4.85" ry="1.9"/>
<svg:line style="stroke-width: 0.1; stroke: #000000" x1="11.1795" y1="4.3565" x2="4.32053" y2="4.3565"/>
<svg:line style="stroke-width: 0.1; stroke: #000000" x1="11.1795" y1="7.0435" x2="4.32053" y2="7.0435"/>
</svg:svg>
</shape>

----------------------------------------------------------------------------------------

5)Wrote a sheet file, and save it in Test_fig.sheet: in <user_profile>/.dia/sheets directory

----------------------------------------------------------------------------------------

<?xml version="1.0" encoding="iso-8859-1"?>
<sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns">
<name>Test</name>
<description>Test</description>
<contents>
<object name="shape - Test">
<description>Test</description>
</object>
</contents>
</sheet>

----------------------------------------------------------------------------------------
 
6)Restart dia and my sheet was not in menu.
 
Then I've tryed to put files in c:/Program Files/dia/shapes and c:/Program Files/dia/sheets (I forget to mention I use DIA 0.89 under Windows 2000), cause I see that there are such .shape and .sheet files, but this not work it out either.
 
Somebody can help?


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