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)" To: geda-user AT delorie DOT com In-Reply-To: References: <34830742 DOT 772461a9 DOT 554d11a4 DOT c7e59 AT o2 DOT pl> <214e167 DOT 7cae5d7f DOT 554e067b DOT 224bd AT o2 DOT pl> Mime-Version: 1.0 Message-ID: <21c231e2.8d3d195.55503eba.1b413@o2.pl> Date: Mon, 11 May 2015 07:31:38 +0200 X-Originator: 78.10.222.41 Content-Type: multipart/mixed; boundary="==o2.pl-WebMail-5b97b5d9.6787f4a5.1b419==" 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 Precedence: bulk This is a multi-part message in MIME format. --==o2.pl-WebMail-5b97b5d9.6787f4a5.1b419== Content-Type: multipart/alternative; boundary="==o2.pl-WebMail-56617907.37d243b6.1b41b==" --==o2.pl-WebMail-56617907.37d243b6.1b41b== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks=20for=20replays, I've=20just=20found=20that=20my=20script=20has=20a=20bug=20in=20arc=20sca= ling=20function.=20I=20overlooked=20that=20Xcenter=20and=20Ycenter=20need= s=20to=20be=20scaled=20too=20-=20my=20logo=20has=20arcs=20only=20with=200= ,0=20origin=20:-).=C2=A0=20This=20is=20fixed=20version.=20 Best=20Regards, Michael=20Widlok --==o2.pl-WebMail-56617907.37d243b6.1b41b== Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks=20for=20replays,I've=20just=20found=20that=20my=20= script=20has=20a=20bug=20in=20arc=20scaling=20function.=20I=20overlooked=20= that=20Xcenter=20and=20Ycenter=20needs=20to=20be=20scaled=20too=20-=20my=20= logo=20has=20arcs=20only=20with=200,0=20origin=20:-).=C2=A0=20This=20is=20= fixed=20version.=20Best=20Regards,Michael=20Widlok --==o2.pl-WebMail-56617907.37d243b6.1b41b==-- --==o2.pl-WebMail-5b97b5d9.6787f4a5.1b419== 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 dWUgPSB2YWx1ZVswOi0zXQoJZWxzZToKCQl1bml0ID0gIiIKCWlmIChERUJVRyA9PSBUcnVl KTogcHJpbnQgIlZhbCA9ICIrdmFsdWUrIiwgVW5pdCA9ICIrdW5pdAoJcmV0dXJuIChzdHIo ZmxvYXQodmFsdWUpICogc2NhbGUpKSt1bml0CgoKZGVmIGxpbmVfdW5rbm93bihmbGluZSwg c2NhbGUpOgoJIiIiVW5rbm93biBsaW5lLCBqdXN0IGNvcHkgaXQiIiIKCXJldHVybiBmbGlu ZQoKZGVmIGxpbmVfRWxlbWVudExpbmUoZmxpbmUsIHNjYWxlKToKCSIiIlNjYWxlIEVsZW1l bnRMaW5lIiIiCglmbGluZSA9IGZsaW5lLnJlcGxhY2UoJ1snLCAiIikKCWZsaW5lID0gZmxp bmUucmVwbGFjZSgnXScsICIiKQkJCQkJIyByZW1vdmUgW10gY2hhcmFjdGVycwoJZmxpbmUg PSBmbGluZS5yZXBsYWNlKCdcbicsICIiKQoJZmxpbmUgPSBmbGluZS5zcG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dmFs dWUoZmxpbmVbN10sIHNjYWxlKQoJIyAgICBFbGVtZW50QXJjICAgICBbICAgIFhjZW50ZXIg ICBZY2VudGVyICAgV2lkdGggICAgICBIZWlnaHQgICAgIFN0YXJ0QW5nbGUgICAgICAgRGVs dGFBbmdsZSAgICAgICBUaGlja25lc3NdCglyZXR1cm4gZmxpbmVbMF0gKyAiIFsiICsgWCAr ICcgJyArIFkgKyAnICcgKyBXZCArICcgJyArIEhnICsgJyAnICsgZmxpbmVbNV0gKyAnICcg KyBmbGluZVs2XSArICcgJyArIFRoICsgIl1cbiIKCgppZiAobGVuKHN5cy5hcmd2KSA8IDQp OgoJcHJpbnQgIk5vdCBlbm91Z2ggYXJndW1lbnRzLiIKCXN5cy5leGl0KCkKCkRFQlVHID0g RmFsc2UKaWYgKERFQlVHID09IFRydWUpOiBwcmludCBzdHIoc3lzLmFyZ3YpCnNjYWxlID0g ZXZhbChzeXMuYXJndlsxXSkKaW5maWxlID0gb3BlbihzeXMuYXJndlsyXSwgJ3InKQpvdXRm aWxlID0gb3BlbihzeXMuYXJndlszXSwgJ3cnKQoKZm9yIGZsaW5lIGluIGluZmlsZToKCWlm IChmbGluZS5maW5kKCJFbGVtZW50TGluZSIpICE9IC0xKToKCQlvbGluZSA9IGxpbmVfRWxl bWVudExpbmUoZmxpbmUsIHNjYWxlKQoJZWxpZiAoZmxpbmUuZmluZCgiRWxlbWVudEFyYyIp ICE9IC0xKToKCQlvbGluZSA9IGxpbmVfRWxlbWVudEFyYyhmbGluZSwgc2NhbGUpCgllbHNl OgoJCW9saW5lID0gbGluZV91bmtub3duKGZsaW5lLCBzY2FsZSkKCW91dGZpbGUud3JpdGUo b2xpbmUpCmluZmlsZS5jbG9zZSgpCm91dGZpbGUuY2xvc2UoKQpzeXMuZXhpdCgpCgo= --==o2.pl-WebMail-5b97b5d9.6787f4a5.1b419==--