On Sat, 29 Jul 2006 14:51:58 +0200, Leon Mintz wrote
> Hi.
> I was trying to do as suggested. Dia does open both plain svg and inkscape
> svg files. However, I've encountered several difficulties:
> 
> 1. When I open my SVGs in Dia, it comes out in a way that doesn't 
> let me resize it.

Dont worry. When you get the shape it will resize.

> When I export it as a shape file and try to add it 
> to a sheet, Dia crashes.

Maybe the addition was not right.( And Dia is not very friendly about errors 
on shapes and sheets)

I attache a sheet, shape and icon I made from your files:
 
--- I took your pump svg-file and exported to a shape-file and to a 
png-file. (For the png-file I choose a small size, 22x22)

--- Then with a text editor I 'open' the 'connections' tag and added a 
connection point intending it to be at center of the shape; I finised it 
with main="yes"

--- Then using the "sheets and objects" from main Dia menu I prepared a 
sheet file (After creating the sheet file I had to close and reopen Dia
to see the recently created sheet file)   

> 2. How do I set a mid-point?
I did it by trial and error ... Instead of inspecting the shape file to 
"exactly compute" coordinates for a central point, I choose a possible one 
and connected a line to the pump. When touching the line its extremes are 
seen ... 
> 3. Is there any non-textual way to set connection points?
I don't know.
> 4. In a sheet, is it necessary to add all left-to-right and right-to-
> left and up-down and down-up images, or can Dia handle those 90deg 
rotations
> itself? (see Circuit sheet for example)
I think it cannot; Dia can handle symmetries around vertical or horizontal 
axis (flipping)
> 5. Only B&W shapes? 
 I see your pump shape with a violet colour.
> Can we take SVGs from wikimedia commons?
I don't know

> Loli: I've attached my latest files.
Thank you. Your shapes are quite different from ours. Your shapes represent 
machines and ours represent, for example, heat losses ... (Please, forgive 
my English). 

> Nick, Lars: Please write me any suggestions or corrections.

Dia is also good to prepare simple shapes

  Lars: I remember that before version 0.94, whenever one exported to shape, 
one also got the png file offered with small size. But now this does not 
happen. Is this an intended change?  

> 
> Thanks a lot,
> Leon.


--  
Loli 
[EMAIL PROTECTED]

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"; 
xmlns:svg="http://www.w3.org/2000/svg";>
  <name>Thermodynamic - Pump</name>
  <icon>Pump.png</icon>
  <connections>
    <point x="30" y="80" main="yes"/>
  </connections>
  <aspectratio type="fixed"/>
  <svg:svg>
    <svg:path style="fill: none; fill-opacity:0; stroke-width: 4; 
stroke-dasharray: 0.001; stroke: #000000" d="M -22.6942 159.023 L 
-14.9001,129.935 L 75.7708,129.935 L 83.565,159.023 L -22.6942,159.023"/>
    <svg:path style="fill: #c1a7cc" d="M 100.351 74.0626 C 100.351,112.723 
69.0108,144.063 30.3509,144.063 C -8.30903,144.063 -39.6491,112.723 
-39.6491,74.0626 C -39.6491,35.4026 -8.30903,4.06258 30.3509,4.06258 C 
69.0108,4.06258 100.351,35.4026 100.351,74.0626z"/>
    <svg:path style="fill: none; fill-opacity:0; stroke-width: 5; 
stroke-dasharray: 0.001; stroke: #c1a7cc" d="M 100.351 74.0626 C 
100.351,112.723 69.0108,144.063 30.3509,144.063 C -8.30903,144.063 
-39.6491,112.723 -39.6491,74.0626 C -39.6491,35.4026 -8.30903,4.06258 
30.3509,4.06258 C 69.0108,4.06258 100.351,35.4026 100.351,74.0626"/>
  </svg:svg>
</shape>

Attachment: Pump.png
Description: PNG image

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns";>
<!--Dia-Version: 0.95-1-->
<!--Archivo: /home/loli/.dia/sheets/Thermodynamic.sheet-->
<!--Fecha: Sun Jul 30 00:38:36 2006-->
<!--Para: loli-->

<name>Thermodynamic</name>
<description>yyy</description>
<contents>
<!--añadir formas aquí-->
<object name="Thermodynamic - Pump">
<description></description></object></contents></sheet>
<?xml version="1.0" encoding="UTF-8"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/";>
  <dia:diagramdata>
    <dia:attribute name="background">
      <dia:color val="#ffffff"/>
    </dia:attribute>
    <dia:attribute name="pagebreak">
      <dia:color val="#000099"/>
    </dia:attribute>
    <dia:attribute name="paper">
      <dia:composite type="paper">
        <dia:attribute name="name">
          <dia:string>#A4#</dia:string>
        </dia:attribute>
        <dia:attribute name="tmargin">
          <dia:real val="2.8222000598907471"/>
        </dia:attribute>
        <dia:attribute name="bmargin">
          <dia:real val="2.8222000598907471"/>
        </dia:attribute>
        <dia:attribute name="lmargin">
          <dia:real val="2.8222000598907471"/>
        </dia:attribute>
        <dia:attribute name="rmargin">
          <dia:real val="2.8222000598907471"/>
        </dia:attribute>
        <dia:attribute name="is_portrait">
          <dia:boolean val="true"/>
        </dia:attribute>
        <dia:attribute name="scaling">
          <dia:real val="1"/>
        </dia:attribute>
        <dia:attribute name="fitto">
          <dia:boolean val="false"/>
        </dia:attribute>
      </dia:composite>
    </dia:attribute>
    <dia:attribute name="grid">
      <dia:composite type="grid">
        <dia:attribute name="width_x">
          <dia:real val="1"/>
        </dia:attribute>
        <dia:attribute name="width_y">
          <dia:real val="1"/>
        </dia:attribute>
        <dia:attribute name="visible_x">
          <dia:int val="1"/>
        </dia:attribute>
        <dia:attribute name="visible_y">
          <dia:int val="1"/>
        </dia:attribute>
        <dia:composite type="color"/>
      </dia:composite>
    </dia:attribute>
    <dia:attribute name="color">
      <dia:color val="#d8e5e5"/>
    </dia:attribute>
    <dia:attribute name="guides">
      <dia:composite type="guides">
        <dia:attribute name="hguides"/>
        <dia:attribute name="vguides"/>
      </dia:composite>
    </dia:attribute>
  </dia:diagramdata>
  <dia:layer name="Fondo" visible="true">
    <dia:object type="Thermodynamic - Pump" version="0" id="O0">
      <dia:attribute name="obj_pos">
        <dia:point val="3.2,3.75"/>
      </dia:attribute>
      <dia:attribute name="obj_bb">
        <dia:rectangle val="2.725,3.275;5.48191,6.13"/>
      </dia:attribute>
      <dia:attribute name="elem_corner">
        <dia:point val="3.2,3.75"/>
      </dia:attribute>
      <dia:attribute name="elem_width">
        <dia:real val="1.8069143075373699"/>
      </dia:attribute>
      <dia:attribute name="elem_height">
        <dia:real val="2"/>
      </dia:attribute>
      <dia:attribute name="line_width">
        <dia:real val="0.18999999761581421"/>
      </dia:attribute>
      <dia:attribute name="line_colour">
        <dia:color val="#000000"/>
      </dia:attribute>
      <dia:attribute name="fill_colour">
        <dia:color val="#ffffff"/>
      </dia:attribute>
      <dia:attribute name="show_background">
        <dia:boolean val="true"/>
      </dia:attribute>
      <dia:attribute name="line_style">
        <dia:enum val="0"/>
        <dia:real val="1"/>
      </dia:attribute>
      <dia:attribute name="flip_horizontal">
        <dia:boolean val="false"/>
      </dia:attribute>
      <dia:attribute name="flip_vertical">
        <dia:boolean val="false"/>
      </dia:attribute>
    </dia:object>
    <dia:object type="Standard - Line" version="0" id="O1">
      <dia:attribute name="obj_pos">
        <dia:point val="9.25,1"/>
      </dia:attribute>
      <dia:attribute name="obj_bb">
        <dia:rectangle val="4.89677,0.869114;9.38089,3.76527"/>
      </dia:attribute>
      <dia:attribute name="conn_endpoints">
        <dia:point val="9.25,1"/>
        <dia:point val="5.02765,3.63438"/>
      </dia:attribute>
      <dia:attribute name="numcp">
        <dia:int val="1"/>
      </dia:attribute>
      <dia:attribute name="line_width">
        <dia:real val="0.18999999761581421"/>
      </dia:attribute>
      <dia:connections>
        <dia:connection handle="1" to="O0" connection="0"/>
      </dia:connections>
    </dia:object>
  </dia:layer>
</dia:diagram>
_______________________________________________
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia

Reply via email to