X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Tue, 2 Apr 2013 12:59:26 -0700 From: Andrew Poelstra To: geda-user AT delorie DOT com Subject: Re: [geda-user] C/C++ parsing library for PCB file format? Message-ID: <20130402195926.GB26221@malakian.lan> References: <1359476624 DOT 4235 DOT 9 DOT camel AT AMD64X2> <201301291656 DOT r0TGuix1011799 AT envy DOT delorie DOT com> <1364924842 DOT 3408 DOT 13 DOT camel AT AMD64X2 DOT fritz DOT box> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline In-Reply-To: <1364924842.3408.13.camel@AMD64X2.fritz.box> User-Agent: Mutt/1.5.21 (2010-09-15) 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 --eAbsdosE1cNLO4uF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 02, 2013 at 07:47:22PM +0200, Stefan Salewski wrote: >=20 > Question: For footprints we have now optional dimensions like nm -- is > that restricted to footprint files, or can we have that in .pcb files > too? I have just loaded a .pcb file and stored again -- seems to use > 0.01 mil units. Is nm unit possible, so that I have to care for it when > parsing? > You can put explicit units into .pcb files, and pcb will understand it, but right now it will always output using mm or mil, depending on what makes sense. Outputting extra units would mean a breaking change in the file format, but if you want to do it anyway (recent versions of pcb can handle it), open pcb-printf.h and find /* This is all units allowed in parse_l.l */ #if 0 ALLOW_READABLE =3D ALLOW_NM | ALLOW_UM | ALLOW_MM | ALLOW_M | ALLOW_KM | ALLOW_CMIL | ALLOW_MIL | ALLOW_IN, #else ALLOW_READABLE =3D ALLOW_MIL | ALLOW_MM, #endif and change that 0 to a 1. Andrew =20 --=20 Andrew Poelstra Email: apoelstra at wpsoftware.net Web: http://www.wpsoftware.net/andrew --eAbsdosE1cNLO4uF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEbBAEBAgAGBQJRWzieAAoJEHrQqRxAvQCRCUAH90h0MY8i1OArItET1P3/cqO6 9PK500iC5EipKTRW+5mKBQUwlpCUiLefFrErk21+DQoPJTd2QNkKLpbbujeVV9Vl C9810nqExwSsrePpAtB115tErCWEt+jw0I9kuNtQRnsoG8MaW/EmOztxb538fghd f85no1hQbtR8MtQ7wVleLUjXgy0DFGvsdfSEkGsGzIdaBPAfe4hT7Bl7gn+r94Dv YNZ+UPTbA97+9gTGKgJHleSC8PxcJtTpEYJN7Xdrpvb4cVIhKfqyOj/4I8DOH5Rg lEC0Ytekx2SCe69p2+938WfDs68y+sZNCbn+09E9tFOuBLDZNGOGLfjGckkTeQ== =FiyC -----END PGP SIGNATURE----- --eAbsdosE1cNLO4uF--