Default size for shapes

2012-11-06 Thread Harold
Dear list,

I'm taking my first steps into making some Dia shapes but I'm having
some trouble with the size of the shapes when you add one to your
layout. Ideally I'd like to create shapes with a predefined size and
that aren't scalable. I'd like to use these shapes to draw electrical
schematics.

If I create a shape with either a size of 1000 or 1, the object is
always the same size when adding them to the layout.


http://www.daa.com.au/~james/dia-shape-ns";
xmlns:svg="http://www.w3.org/2000/svg";>
  Shape
  shape.png
  
  

  


... is the same size as:


http://www.daa.com.au/~james/dia-shape-ns";
xmlns:svg="http://www.w3.org/2000/svg";>
  Shape
  shape.png
  
  

  


How can I create a smaller shape? Bonus points for telling me how I
can create a non-scalable shape ;)


Cheers!

Harold
___
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: Default size for shapes

2012-11-06 Thread Michael Ross
Base units for Dia are centimeters.  I believe you need to think in cm when
making shapes.  I don't make shapes, so hopefully someone else will chime
in.

M

On Tue, Nov 6, 2012 at 9:46 AM, Harold  wrote:

> Dear list,
>
> I'm taking my first steps into making some Dia shapes but I'm having
> some trouble with the size of the shapes when you add one to your
> layout. Ideally I'd like to create shapes with a predefined size and
> that aren't scalable. I'd like to use these shapes to draw electrical
> schematics.
>
> If I create a shape with either a size of 1000 or 1, the object is
> always the same size when adding them to the layout.
>
> 
> http://www.daa.com.au/~james/dia-shape-ns";
> xmlns:svg="http://www.w3.org/2000/svg";>
>   Shape
>   shape.png
>   
>   
>  height="1000"/>
>   
> 
>
> ... is the same size as:
>
> 
> http://www.daa.com.au/~james/dia-shape-ns";
> xmlns:svg="http://www.w3.org/2000/svg";>
>   Shape
>   shape.png
>   
>   
> 
>   
> 
>
> How can I create a smaller shape? Bonus points for telling me how I
> can create a non-scalable shape ;)
>
>
> Cheers!
>
> Harold
> ___
> 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 *

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

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

michael.e.r...@gmail.com

___
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: Default size for shapes

2012-11-06 Thread Hans Breuer

At 06.11.2012 15:46, Harold wrote:

Dear list,

I'm taking my first steps into making some Dia shapes but I'm having
some trouble with the size of the shapes when you add one to your
layout. Ideally I'd like to create shapes with a predefined size and
that aren't scalable. I'd like to use these shapes to draw electrical
schematics.

If I create a shape with either a size of 1000 or 1, the object is
always the same size when adding them to the layout.


Please take a look into the specification of custom shapes:
http://git.gnome.org/browse/dia/tree/doc/custom-shapes#n109

IIRC this documentation is also included the user manual.



How can I create a smaller shape? Bonus points for telling me how I
can create a non-scalable shape ;)

Having some extra state to enable non-resizable shapes would require some 
source code modification in the custom shape module, e.g.:

http://git.gnome.org/browse/dia/tree/objects/custom/custom_object.c#n759

It is not part of specification or implementation yet.

HTH,
Hans

 Hans "at" Breuer "dot" Org ---
Tell me what you need, and I'll tell you how to
get along without it.-- Dilbert
___
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: Default size for shapes

2012-11-06 Thread Harold
On Tue, Nov 6, 2012 at 10:05 PM, Hans Breuer  wrote:
> At 06.11.2012 15:46, Harold wrote:
>> If I create a shape with either a size of 1000 or 1, the object is
>> always the same size when adding them to the layout.
>>
> Please take a look into the specification of custom shapes:
> http://git.gnome.org/browse/dia/tree/doc/custom-shapes#n109
>
> IIRC this documentation is also included the user manual.

Thanks! The default-width/height enabled me to create realy small
shapes like this:


http://www.daa.com.au/~james/dia-shape-ns";
xmlns:svg="http://www.w3.org/2000/svg";>
  0.3
  0.3
  Capacitor
  capacitor.png
  
  


  
  




  



The only problem I now have is adding a textbox. If I use  the tiny shape grows
to humongous proportions again, probably due to the large default font
size of 22.68 pt.

What tiny textbox can I add to the tiny shape to stop it from gowing?


>> How can I create a smaller shape? Bonus points for telling me how I
>> can create a non-scalable shape ;)
>>
> Having some extra state to enable non-resizable shapes would require some
> source code modification in the custom shape module, e.g.:
> http://git.gnome.org/browse/dia/tree/objects/custom/custom_object.c#n759
>
> It is not part of specification or implementation yet.

Well, let's skip this part for now ...


Cheers!


Harold
___
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