delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/05/09/09:08:16

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Subject: =?UTF-8?Q?Re:_[geda-user]_Scale_component_in?=
=?UTF-8?Q?_PCB?=
From: "=?UTF-8?Q?michalwd1979?= (michalwd1979 AT o2 DOT pl)" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
In-Reply-To: <34830742.772461a9.554d11a4.c7e59@o2.pl>
References: <d7qbea1l55ahy6ngqm2i29p5 DOT 1424084381747 AT email DOT android DOT com> <34830742 DOT 772461a9 DOT 554d11a4 DOT c7e59 AT o2 DOT pl>
Mime-Version: 1.0
Message-ID: <214e167.7cae5d7f.554e067b.224bd@o2.pl>
Date: Sat, 09 May 2015 15:07:07 +0200
X-Originator: 78.10.218.72
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

This is a multi-part message in MIME format.

--==o2.pl-WebMail-63132929.4f80d4dd.224ce==
Content-Type: multipart/alternative;
	boundary="==o2.pl-WebMail-8d2a0ba.4d891ee2.224d1=="

--==o2.pl-WebMail-8d2a0ba.4d891ee2.224d1==
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank=20You=20All=20for=20suggestions!
I=20know=20that=20scale=20a=20regular=20footprint=20is=20rather=20poor=20=
ideal,=20and=20I=20already=20used=20pstoedit=20to=20get=20pcb=20files=20f=
rom=20drawings/graphic.=20My=20logo=20was=20drawn=20in=20pcb=20directly=20=
(to=20save=20space),=20so=20pstoedit=20is=20not=20an=20good=20option=20no=
w.
=20Anyway=20I=20wrote=20a=20super-simple=20python=20script=20that=20lets=20=
You=20scale=20an=20element=20for=20pcb.=20Now=20only=20"ElementLine"=20an=
d=20"ElementArc"=20are=20supported=20-=20enough=20for=20me.=20Usage=20is:=
=20pcb=5Fscale=201.0=20infile.fp=20outfile.fp,=20where=201.0=20is=20a=20s=
cale=20like=202.0,=200.5=20etc.
Best=20Regards,
Michael=20Widlok
--==o2.pl-WebMail-8d2a0ba.4d891ee2.224d1==
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank=20You=20All=20for=20suggestions!<br=20/><br=20/>I=20know=20that=20s=
cale=20a=20regular=20footprint=20is=20rather=20poor=20ideal,=20and=20I=20=
already=20used=20pstoedit=20to=20get=20pcb=20files=20from=20drawings/grap=
hic.=20My=20logo=20was=20drawn=20in=20pcb=20directly=20(to=20save=20space=
),=20so=20pstoedit=20is=20not=20an=20good=20option=20now.<br=20/>=20Anywa=
y=20I=20wrote=20a=20super-simple=20python=20script=20that=20lets=20You=20=
scale=20an=20element=20for=20pcb.=20Now=20only=20"ElementLine"=20and=20"E=
lementArc"=20are=20supported=20-=20enough=20for=20me.=20Usage=20is:=20pcb=
=5Fscale=201.0=20infile.fp=20outfile.fp,=20where=201.0=20is=20a=20scale=20=
like=202.0,=200.5=20etc.<br=20/><br=20/>Best=20Regards,<br=20/>Michael=20=
Widlok
--==o2.pl-WebMail-8d2a0ba.4d891ee2.224d1==--

--==o2.pl-WebMail-63132929.4f80d4dd.224ce==
Content-Type: text/x-python;
	name="=?UTF-8?Q?pcb=5Fscale.py?="
Content-Disposition: attachment;
	filename="=?UTF-8?Q?pcb=5Fscale.py?="
Content-Transfer-Encoding: base64

IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCgppbXBvcnQgc3RyaW5nLCBzeXMKCgpkZWYgc2NhbGVf
dmFsdWUodmFsdWUsIHNjYWxlKToKCWlmICh2YWx1ZS5maW5kKCJtbSIpICE9IC0xKToJCQkJ
CSMgZ2V0IHVuaXQgbWlsL21tCgkJdW5pdCA9ICJtbSIKCQl2YWx1ZSA9IHZhbHVlWzA6LTJd
CgllbGlmICh2YWx1ZS5maW5kKCJtaWwiKSAhPSAtMSk6CgkJdW5pdCA9ICJtaWwiCgkJdmFs
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Zb
Ml0sICdyJykKb3V0ZmlsZSA9IG9wZW4oc3lzLmFyZ3ZbM10sICd3JykKCmZvciBmbGluZSBp
biBpbmZpbGU6CglpZiAoZmxpbmUuZmluZCgiRWxlbWVudExpbmUiKSAhPSAtMSk6CgkJb2xp
bmUgPSBsaW5lX0VsZW1lbnRMaW5lKGZsaW5lLCBzY2FsZSkKCWVsaWYgKGZsaW5lLmZpbmQo
IkVsZW1lbnRBcmMiKSAhPSAtMSk6CgkJb2xpbmUgPSBsaW5lX0VsZW1lbnRBcmMoZmxpbmUs
IHNjYWxlKQoJZWxzZToKCQlvbGluZSA9IGxpbmVfdW5rbm93bihmbGluZSwgc2NhbGUpCglv
dXRmaWxlLndyaXRlKG9saW5lKQppbmZpbGUuY2xvc2UoKQpvdXRmaWxlLmNsb3NlKCkKc3lz
LmV4aXQoKQoK

--==o2.pl-WebMail-63132929.4f80d4dd.224ce==--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019