Re: Need guidance about basic shapes



I am not into shape creation, but isn't that what you are doing here - adding text to a shape?

Bhanu wants to add text to a tool such as an arc or line.  Can that be done with the method you have shown?


On Tue, Jun 10, 2014 at 4:15 PM, Marchand Eric <ricoh51 free fr> wrote:
Hi,
here is an example :
-------------------------------------------------------------
<?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>mesure_commande</name>
  <icon>mesure_commande.png</icon>
  <connections>
    <point x="0" y="1"/>   
        <point x="1" y="0"/>       
        <point x="1" y="2"/>
        <point x="2" y="1"/>           
  </connections>
  <aspectratio type="fixed"/>
    <default-width>2</default-width>
    <textbox resize="no" x1="0" y1="0" x2="2" y2="2"/>
  <svg:svg>
        <svg:circle cx="1" cy="1" r="1"/>
  </svg:svg>
</shape>
---------------------------------------------------------

Regards

eric


Le 09/06/2014 15:09, Bhanu Singh a écrit :
Hi,

I am using basic (standard) shape arc in my diagram.

How can i embedded textbox within in Arc shape. Arc is basic shape in Dia so i will have to modify basic shapes in Dia to insert a textbox. 

Dia provides a option to add Text object to an ARC but this does not embedded 
Text with the Arc shape. It makes it difficult to extract text from a corresponding arc from a SVG file.

Please let me know how basic shapes can be modified in Dia


--
Bhanu Singh



_______________________________________________
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



_______________________________________________
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





--
Put this question to yourself: should I use everyone else to attain happiness, or should I help others gain happiness?  
Dalai Lama 

Tell me what it is you plan to do
With your one wild and precious life?
Mary Oliver, "The summer day."

To invent, you need a good imagination and a pile of junk.

A public-opinion poll is no substitute for thought.
Warren Buffet

Michael E. Ross
(919) 550-2430 Land
(919) 576-0824 Google Phone
(919) 631-1451 Cell
(919) 513-0418 Desk






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