Re: Does everyone make large objects, or is it just how I am using Dia?

2014-07-30 Thread dunn

Thank you, Andrey!

I wondered why all the objects come in at the same size, since I need 
some different sizes. I was amazed to see your Sector object come in 
larger than the others. Surprise!  I had not seen that in any other samples.


-- dunn

On 07/27/2014 01:40 AM, Andrey Repin wrote:

Greetings, dunn!


What I really don't think I'll figure out from the samples is the
'xmlns=' part, because I have no samples of what should be there.

Just leave the first two lines as they are.
They define the file as XML, and specify the root element of the shape/sheet.


I suppose I'll lose the xml namespace and the duplicate shape
definitions. I only ask such things because I don't want to go back and
change the files I create because I didn't know the obvious.

I can show a simple shape I've created myself. Practically by hands.
Here. Hope that'll help you start.

?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;
   nameHazeron - Binary Stars/name
   iconBinary.png/icon
   connections
 point x=0 y=0 main=yes/
   /connections
   aspectratio type=fixed/
   default-width3/default-width
   default-height3/default-height
   textbox x1=-1.35 y1=-0.9 x2=1.65 y2=1.1 align=center resize=no 
style=fill: background; fill-opacity: 127;/
   svg:svg
 svg:circle style=fill: background; fill-opacity: 170; stroke: foreground; stroke-width: 0.75; 
cx=-0.75 cy=-0.75 r=0.75/
 svg:circle style=fill: background; fill-opacity: 255; stroke: foreground; stroke-width: 1; 
cx=0.15 cy=0.15 r=1.35/
   /svg:svg
/shape

I've attached a complete set of shapes with a sheet, though they are rather
crude, I haven't had enough time to polish them to the production quality.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 27.07.2014, 12:36

Sorry for my terrible english...


___
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



Re: Double 'shapes' in shape files

2014-07-30 Thread dunn

Thanks again, Andrey!

So those were just coded that way because they were automatically 
generated.  It's nice to know that if I don't use the method, my objects 
will still come out ok.


   -- dunn

On 07/27/2014 01:43 AM, Andrey Repin wrote:

Greetings, dunn!


If this is more of an svg question and not something particular to Dia,
just let me know please!
All through the sample files, the shapes have xml like this, with two
calls to ellipses, rectangles, circles:
svg:svg
svg:ellipse style=fill: default cx=5 cy=5 rx=7 ry=7/
svg:ellipse style=fill: none; fill-opacity:0; stroke-width: 0.1;
stroke: #00 cx=5 cy=5 rx=7 ry=7/
/svg:svg
...but I get the same effect with just one call and a thicker
stroke-width like this:
svg:svg
svg:ellipse style=fill: default; stroke-width:1 cx=5 cy=5
rx=7 ry=7/
/svg
I really don't even see how the sample files get a thick line from this,
since stroke-width:0.1 gives a hairline and the radii are the same in
both the calls.
Is there a reason to make shapes the first way as opposed to the second?

This is a deficiency of Dia's shape exporter.
I'm either make shapes by hands (if shape is simple enough, or if I need
precise results), or proof-read and cleanup the shape after export (if shape
is a complex/compound object).


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 27.07.2014, 12:41

Sorry for my terrible english...

___
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



Re: Does everyone make large objects, or is it just how I am using Dia?

2014-07-30 Thread dunn

Got it, Andrey!

I also learned from your sample that shapes could be in subdirectories 
underneath the 'shapes' directory.


Nice!

   -- dunn

On 07/30/2014 12:58 AM, Andrey Repin wrote:

Greetings, dunn!


I wondered why all the objects come in at the same size, since I need
some different sizes. I was amazed to see your Sector object come in
larger than the others. Surprise!  I had not seen that in any other samples.

That's
   default-width25/default-width

I've used Sector shape as a backdrop to organize diagram.
http://project.rootdir.org/gallery/Hazeron/?show=WHMap.png
That's why I wanted it to be big enough.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 30.07.2014, 11:55

Sorry for my terrible english...

___
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



Do C Language plugins need to be compiled with Dia?

2014-07-30 Thread dunn
I know I'm causing a flurry of messages all at once, but I was wondering 
if a user makes a C Language plugin instead of Python, does it have to 
be compiled with the program, or does Dia find a library (and perhaps an 
XML file) in a folder and use it?


Thanks,
   -- dunn

___
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



Does everyone make large objects, or is it just how I am using Dia?

2014-07-25 Thread dunn

Howdy!

I am just learning Dia and was about to try my hand at making some 
shapes.  I notice the shapes I have used in Dia are very large, the 
borders are very thick at 0.1cm and the font is also large at 22.68pt 
(5/16).


As I make my shapes, I would want to make them so they fit 9 pt font 
size (1/8 tall), which is what I consider to be the perfect size (so 
studies say for us CAD users), and the borders would be 0.5 mm thick 
instead of 0.1cm.  This means I would make much smaller shapes.  Would 
anyone be able to use those shapes, or want to?


Are my shapes just very large because I have a default font setting 
somewhere that is setting my font so large?


I did see in the faq that people questioned why there fonts were too 
small, so I don't know if for some people everything comes out smaller.  
Could everything be large because their printing makes things smaller?


Thanks for the program :-).

   -- dunn

___
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



Re: Does everyone make large objects, or is it just how I am using Dia?

2014-07-25 Thread dunn

Thanks, Mike!

I actually didn't have any files or shapes to share because I was about 
to create some, but if I have other questions, can we add an attachment 
on the mailing list messages?


I've actually been working on figuring out why the shapes are coded the 
way they are. I copied some into my local shapes folder and couldn't 
figure out why my changes would not show up.  It took a lot of tweaking 
thinking it was not having extents on the svg part, whether line 
thickness were not being accepted because in some shapes they're stated 
with reals, other integers, and some not at all. It turns out there was 
something to do with the prefix on the name of the shapes.  I still 
couldn't state definitely what I had wrong. It will take some more 
testing to figure out how the sheet file finds the shapes (since I 
noticed this when I got a 'Duplicate Object error after a couple of 
hours of confusion :-!).  (My file was still showing me the one I had 
copied even though I had created a new sheet and renamed the shape. Sheesh!)


Thanks for the double-click on the tools tip.  I read the whole manual 
before asking, but must have missed it.  Some let me change the Draw 
Background, Text Padding, Text Alignment, Font, Font Size, Flip Horz  
Vert, and others just the Draw background and the Flips.  None in the 
BPMN Sheet let me change the default Lineweight.


I haven't really used Dia before trying to customize it though, and it 
wasn't until I had made my first shape that I learned everything is 
brought in at the same size anyway.  (It would be nice to learn we can 
change this with Python on insertion or something!)


So apparently, it is advice well taken that if I am rigid about font 
size or many other things, I might be in trouble!


I wonder if there is anymore information than the manual and the samples 
on how to avoid name conflicts and what's supposed to be in the online 
XML, and how the seemingly cryptic attachment points are measured. I'll 
get the points, but I don't know about the xmlns= part.


Thanks again,
   -- Dunn

On 07/25/2014 12:11 PM, Michael Ross wrote:
You should probably share the files of representative shape for people 
to talk sensibly about the.


Shapes are created within a 1cm square area (or were when I last tried 
to make a shape).  If you made them larger, then that could be the 
explanation.


However the shape was sized, you should be able to scale it to 
whatever size you want.


If you double click on a tool, a properties dialog will arise where 
you can set the default properties - such as line weight.   I never 
worry about font size and just adjust font and page scale to get a 
readable output.  This is the normal workflow for Dia.  I am not sure 
what difficulties you will cause yourself by being rigid about font size.


Mike



On Fri, Jul 25, 2014 at 2:44 PM, dunn dnaugh...@dunnamin.com 
mailto:dnaugh...@dunnamin.com wrote:


Howdy!

I am just learning Dia and was about to try my hand at making some
shapes.  I notice the shapes I have used in Dia are very large,
the borders are very thick at 0.1cm and the font is also large at
22.68pt (5/16).

As I make my shapes, I would want to make them so they fit 9 pt
font size (1/8 tall), which is what I consider to be the perfect
size (so studies say for us CAD users), and the borders would be
0.5 mm thick instead of 0.1cm.  This means I would make much
smaller shapes.  Would anyone be able to use those shapes, or want to?

Are my shapes just very large because I have a default font
setting somewhere that is setting my font so large?

I did see in the faq that people questioned why there fonts were
too small, so I don't know if for some people everything comes out
smaller.  Could everything be large because their printing makes
things smaller?

Thanks for the program :-).

   -- dunn

___
dia-list mailing list
dia-list@gnome.org mailto: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.
Thomas A. Edison 
http://www.brainyquote.com/quotes/quotes/t/thomasaed125362.html


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

Michael E. Ross
(919) 550-2430 Land
(919) 576-0824 https://www.google.com/voice/b/0?pli=1#phones Google 
Phone

(919) 631-1451 Cell
(919) 513-0418 Desk

michael.e.r...@gmail.com mailto:michael.e.r...@gmail.com





___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ

Re: Does everyone make large objects, or is it just how I am using Dia?

2014-07-25 Thread dunn

Alex,

Very good advice on the 40%.  I tried that but for my multi-page 
diagram, Dia still printed the same 6 pages to pdf with the 40% part at 
the upper left of each page.  So I tried importing the svg into Inkscape 
set to cm, but it then printed the text at 1/16 instead of 1/8 
(Inkscape does not do well with measurements!).  So just exporting an 
svg and shrinking it will be the way to go, as you say.


What I'm after mostly is nice svg files for the web anyway. Printing 
will work itself out :-).


Thanks,
   -- Dunn

On 07/25/2014 01:41 PM, Alejandro Imass wrote:




On Fri, Jul 25, 2014 at 2:44 PM, dunn dnaugh...@dunnamin.com 
mailto:dnaugh...@dunnamin.com wrote:


Howdy!

I am just learning Dia and was about to try my hand at making some
shapes.  I notice the shapes I have used in Dia are very large,
the borders are very thick at 0.1cm and the font is also large at
22.68pt (5/16).

As I make my shapes, I would want to make them so they fit 9 pt
font size (1/8 tall), which is what I consider to be the perfect
size (so studies say for us CAD users), and the borders would be
0.5 mm thick instead of 0.1cm.  This means I would make much
smaller shapes.  Would anyone be able to use those shapes, or want to?



Just scale the page to whatever you want I use around 40% for UML 
diagrams and works pretty well but YMMV


Best,
Alex


___
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



Double 'shapes' in shape files

2014-07-25 Thread dunn
If this is more of an svg question and not something particular to Dia, 
just let me know please!


All through the sample files, the shapes have xml like this, with two 
calls to ellipses, rectangles, circles:


svg:svg
  svg:ellipse style=fill: default cx=5 cy=5 rx=7 ry=7/
  svg:ellipse style=fill: none; fill-opacity:0; stroke-width: 0.1; 
stroke: #00 cx=5 cy=5 rx=7 ry=7/

/svg:svg

...but I get the same effect with just one call and a thicker 
stroke-width like this:


svg:svg
  svg:ellipse style=fill: default; stroke-width:1 cx=5 cy=5 
rx=7 ry=7/

/svg

I really don't even see how the sample files get a thick line from this, 
since stroke-width:0.1 gives a hairline and the radii are the same in 
both the calls.


Is there a reason to make shapes the first way as opposed to the second?

Thanks,
   -- Dunn

___
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



Re: Does everyone make large objects, or is it just how I am using Dia?

2014-07-25 Thread dunn

Andrey,

Thanks!  Sorry about the 'prefix' thing. It's just what I remembered 
from the manual, which is the same as the page link you sent.  It says:


   As in the example, you may use compound names. Many shapes
   have first part of its name to indicate the sheet in which
   they appear, but this is optional.

So, I had copied a shape and renamed it in its file, and I had copied 
from a sheet file and renamed the shape there.  The names of both my 
sheet and the shape were different than the original.  It wasn't until I 
changed the first part of the compound name inside the shape file from 
'BPMN - ' to 'BPMN2 - ' that I could see my changes _and_ had no 
'duplicate' error.


I'm sure having made some of these or being familiar with the source 
code, the questions that I have most likely cannot even be seen.


For example, I started with this file from BPMN sheet with the filename 
'Start-Event-Message.shape':


01 ?xml version=1.0 encoding=UTF-8?
02 shape xmlns=http://www.daa.com.au/~james/dia-shape-ns; 
xmlns:svg=http://www.w3.org/2000/svg;

03   nameBPMN - Start-Event-Message/name
04   iconStart-Event-Message.png/icon
05   connections
06 point x=0 y=0/
07 point x=10 y=0/
08 point x=10 y=10/
09 point x=0 y=10/
10 point x=5 y=12/
11 point x=5 y=-2/
12 point x=-2 y=5/
13 point x=12 y=5/
14   /connections
15   aspectratio type=fixed/
16   svg:svg
17 svg:ellipse style=fill: default cx=5 cy=5 rx=7 ry=7/
18 svg:ellipse style=fill: none; fill-opacity:0; stroke-width: 
0.1; stroke: #00 cx=5 cy=5 rx=7 ry=7/

19 svg:rect style=fill: default x=1 y=2 width=8 height=6/
20 svg:rect style=fill: none; fill-opacity:0; stroke-width: 0.1; 
stroke: #00 x=1 y=2 width=8 height=6/
21 svg:line style=fill: none; fill-opacity:0; stroke-width: 0.1; 
stroke: #00 x1=1 y1=2 x2=5 y2=5/
22 svg:line style=fill: none; fill-opacity:0; stroke-width: 0.1; 
stroke: #00 x1=9 y1=2 x2=5 y2=5/

23   /svg:svg
24 /shape

line 02: None of the sample files I have opened have online files that 
match the 'xmlns=' field.  I don't know if that was a cause of my 
'duplicate' error, but none of the files reference the xml namespace anyway.


line 03: This is where nothing worked with all the files renamed and 
this field set to 'BPMN - Start-Event-Message by dunn'. When I changed 
it to 'BPMN2 - Start-Event-Message by dunn' it worked.


line 05-14: Here, the bounding box of the shape is 14x14, but the 
connection points have strange numbers. I thought they must just be 
relative to the bounding box size of the shape.  But that wouldn't 
explain the negative numbers.  So then I figured the points must all be 
relative to a 10x10 area centered in the center of the shape, but when I 
opened other files this was not true.  When I opened other files they 
were different ranges but those had svg size in line 16. One of them had 
svg limits of 10,12 but was a circle. I don't know how the two are 
related.  I'll figure it out with trial and error tonight though.


lines 17-18: I don't know why the duplicate svg shapes all through the 
files. It doesn't seem to need it and I don't know why it's done like that.


So, I am swimming in total ignorance :-!  I am not just working with A 
typical shape file may look something like this..., because I have all 
of the sample files from the installation.  I don't know which are 
supposed to be shining examples of what should be done, but I'm sure 
I'll get something working.


What I really don't think I'll figure out from the samples is the 
'xmlns=' part, because I have no samples of what should be there.


I suppose I'll lose the xml namespace and the duplicate shape 
definitions. I only ask such things because I don't want to go back and 
change the files I create because I didn't know the obvious.


Thanks, Andrey!
   -- Dunn


On 07/25/2014 07:58 PM, Andrey Repin wrote:

Greetings, dunn!


I actually didn't have any files or shapes to share because I was about
to create some, but if I have other questions, can we add an attachment
on the mailing list messages?

Yes.


I've actually been working on figuring out why the shapes are coded the
way they are.

Quite easy - to be scalable.


I copied some into my local shapes folder and couldn't figure out why my
changes would not show up.

Because they weren't listed in any sheet. Or because your shapes have
duplicate names. Or both.


It took a lot of tweaking thinking it was not having extents on the svg
part, whether line thickness were not being accepted because in some shapes
they're stated with reals, other integers, and some not at all.

In reality (pun intended), the shape measuring units are relative to the shape
itself, and bear [almost] no significance for resulting diagram.


It turns out there was something to do with the prefix on the name of the 
shapes.

There's no such thing as prefix.


I still couldn't state definitely what I had wrong.
It will take some more testing to figure

Dia software licences

2011-03-09 Thread Anthony Dunn
Hi,



Is the DIA software available for free use within a commercial enviroment



thanks



Anthony
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia