| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| X-Original-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= |
| reply-to:subject:to:references:from:message-id:date:mime-version | |
| :in-reply-to:content-type; s=fm3; bh=Xofja9vE2dP7t4y52Xr57w45Ku2 | |
| j0UbtwJKmhqGDrmU=; b=dSwV3omx1G/8lftuxeVhTHAT6fhri8ubGpRij/gmgWB | |
| Gu65soOf4TcQb8NJrLzzPoGUkJwioT3xWywaEzVCp47QYWB8dt0QibSqVn5tsr8J | |
| IiGimzm/YDya+ATMzlhIK4Qg1maf7B7NcMDEiAjzxDiq/NaUEFyFtKESOyWDkhKe | |
| Qenf2eLxrm07lZBOcU4gAvTQFJZPB9j8iQ62VjZx8bDfpN+qfGZnUzaU8XRhshlT | |
| xOXm3qiXuETrtxi2+/8tEBCEnXkDRbixnhU78831y5s+/nnUs+Phnrz6NhYnyWeF | |
| MFIhU1Jr0UOtUDj30Rly9Nl4vMsyOc0y1XksoCrfUaQ== | |
| X-Original-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d= |
| messagingengine.com; h=content-type:date:from:in-reply-to | |
| :message-id:mime-version:references:reply-to:subject:to | |
| :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= | |
| fm3; bh=Xofja9vE2dP7t4y52Xr57w45Ku2j0UbtwJKmhqGDrmU=; b=yoBOBt40 | |
| lhyInSzrLIY4eNnE1+L2u/tYcxE4ypLb6MLWj1jiZvLFMH/5JbfcmmAI76l45o5X | |
| 73dSCLfIhFLXd1cXjv5ja1hRNic982/1SNnVd0UoSmER0sk2IwAdALFdhqa6232f | |
| G0DDQbW8dgCLz7aPYjmrn9+aTtygaZXesHu9Nm856nS/CpFOwjsPrdxfZbz7NvnQ | |
| 9kzCNLEt5x2CKb2w2m8TzbHcPugudcN1e/PLp/6VhDTxECh8/3ea8t8MKetxfUny | |
| QO0G5J5lIHNsssrzRO/PEt7iI27hEAqMWB/FSAPwY/O7SpXhdELZvdowdYSnF1Qa | |
| rrY7mFkpNdY8sg== | |
| X-ME-Sender: | <xms:NgAdXYvPHfs4KOZDY_Ef8V-Vw7LxZvolNvU4LptZp_JtCPBBm19OuA> |
| X-ME-Proxy-Cause: | gggruggvucftvghtrhhoucdtuddrgeduvddrfedtgddufeekucetufdoteggodetrfdotf |
| fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen | |
| uceurghilhhouhhtmecufedttdenucenucfjughrpehruffvfhfhkffffgggjggtsegrtd | |
| erredtfeejnecuhfhrohhmpefiihhrvhhinhcujfgvrhhruceoghhhvghrrhhlsehfrghs | |
| thhmrghilhdrtghomheqnecukfhppedutdekrddvudehrdduleehrddvtdehnecurfgrrh | |
| grmhepmhgrihhlfhhrohhmpehghhgvrhhrlhesfhgrshhtmhgrihhlrdgtohhmnecuvehl | |
| uhhsthgvrhfuihiivgeptd | |
| X-ME-Proxy: | <xmx:NgAdXYTrDB54gWVjMr62vAZWxFQllOCKTGxdwABp2WUTESjqO8JsmQ> |
| <xmx:NgAdXWjoOz4QVJg-clj6AB8uy3MGGAf9W_mvKe3Hn5r9S6o5bJPr2A> | |
| <xmx:NgAdXeuT9O-vxF52qYYeDLE9p5k5kxTEgzvUPGTxmTaHZp0ArjmeJg> | |
| <xmx:NwAdXcLYI1Hr617zvbpcwB12OlWU8vslEcqKHXhhsEp4t8aAxDy8MQ> | |
| Subject: | Re: [geda-user] PCB to DXF |
| To: | geda-user AT delorie DOT com |
| References: | <20190703195225 DOT 1ced3cdc AT jive> |
| From: | "Girvin Herr (gherrl AT fastmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| Message-ID: | <307df5aa-967a-12f6-af44-3913c31001db@fastmail.com> |
| Date: | Wed, 3 Jul 2019 12:17:04 -0700 |
| User-Agent: | Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 |
| Thunderbird/60.7.0 | |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20190703195225.1ced3cdc@jive> |
| 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.
--------------7F2CE83FF6D2FBDAD875F47C
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
On 7/3/19 10:52 AM, Lev (leventelist AT gmail DOT com) [via
geda-user AT delorie DOT com] wrote:
> Dear PCB users/devs,
>
>
> I would like to convert one of my old PCB designs to DXF. Is this possible with PCB?
>
>
> Thanks,
> Levente
>
The short answer is yes, with help from pstoedit.
You don't say what system you are using. I use PCB 4.1.3 on Slackware
14.2 Linux and do this conversion to put the PCB assembly drawing into
DXF for QCAD in order to call out the parts. Here is what I do:
1. In PCB, select (turn on) the wanted layers. Then choose File >
Export > EPS and select "All Layers", "Monochrome", and "Layer
Order". Then OK to create the EPS file.
2. Use:
pstoedit -f dxf -xscale 1.0 -yscale 1.0 eps_file_name_from_step_1 >
output_dxf_file_name
Note the ">" before the output file name spec is a redirection
character. stdout is pstoedit default output.
Scaling can be done in QCAD, but the xscale and yscale options can
also be used as above. This can be a script if you do this process
often. There is also a pstoedit -rotate deg option which can be used
to rotate the result.
Note: using an xscale and yscale of 1.0 causes the imported block to
be very close to the actual size in the drawing.
3. In QCAD (or whatever you use), choose File > Import to import the
converted image into the drawing. It will be a block, so it will not
be editable as such, unless "exploded".
I once had a problem that not all selected layers were exported in PCB.
I started a thread on this problem - subject= "PCB 4.1.3 png export
acting weird​" in January of this year. Although this started applying
to PNG output, it also applies to EPS. The workaround for this problem
that I use is from Chad Parker dated 3:35PM 1/29/19. Note: you don't
need a complete outline. Just a small unnoticeable line on this layer
will suffice. Anything drawn on this layer will force the expected
layers to produce output.
HTH.
Girvin
--------------7F2CE83FF6D2FBDAD875F47C
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 7/3/19 10:52 AM, Lev
(<a class="moz-txt-link-abbreviated" href="mailto:leventelist AT gmail DOT com">leventelist AT gmail DOT com</a>) [via <a class="moz-txt-link-abbreviated" href="mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] wrote:<br>
</div>
<blockquote type="cite" cite="mid:20190703195225 DOT 1ced3cdc AT jive">
<pre class="moz-quote-pre" wrap="">Dear PCB users/devs,
I would like to convert one of my old PCB designs to DXF. Is this possible with PCB?
Thanks,
Levente
</pre>
</blockquote>
<p>The short answer is yes, with help from pstoedit.</p>
<p>You don't say what system you are using. I use PCB 4.1.3 on
Slackware 14.2 Linux and do this conversion to put the PCB
assembly drawing into DXF for QCAD in order to call out the parts.
Here is what I do:<br>
</p>
<ol>
<li>In PCB, select (turn on) the wanted layers. Then choose File
> Export > EPS and select "All Layers", "Monochrome", and
"Layer Order". Then OK to create the EPS file.</li>
<li>Use:<br>
pstoedit -f dxf -xscale 1.0 -yscale 1.0
eps_file_name_from_step_1 > output_dxf_file_name<br>
<br>
Note the ">" before the output file name spec is a
redirection character. stdout is pstoedit default output.<br>
Scaling can be done in QCAD, but the xscale and yscale options
can also be used as above. This can be a script if you do this
process often. There is also a pstoedit -rotate deg option which
can be used to rotate the result.<br>
Note: using an xscale and yscale of 1.0 causes the imported
block to be very close to the actual size in the drawing.</li>
<li>In QCAD (or whatever you use), choose File > Import to
import the converted image into the drawing. It will be a block,
so it will not be editable as such, unless "exploded".</li>
</ol>
<p>I once had a problem that not all selected layers were exported
in PCB. I started a thread on this problem - subject= "PCB 4.1.3
png export acting weird​" in January of this year. Although this
started applying to PNG output, it also applies to EPS. The
workaround for this problem that I use is from Chad Parker dated
3:35PM 1/29/19. Note: you don't need a complete outline. Just a
small unnoticeable line on this layer will suffice. Anything drawn
on this layer will force the expected layers to produce output.<br>
</p>
<p>HTH.</p>
<p>Girvin</p>
<p><br>
</p>
</body>
</html>
--------------7F2CE83FF6D2FBDAD875F47C--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |