Mail Archives: geda-user/2013/04/02/15:59:40
--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--
- Raw text -