X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on ham03.websitewelcome.com X-Spam-Flag2999: NO X-Spam-Level2999: X-Spam-Status2999: "No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gibibit.com; h=Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-BWhitelist:X-Source:X-Source-Args:X-Source-Dir:X-Source-Sender:X-Source-Auth:X-Email-Count:X-Source-Cap; b=FYUIO/b3eBDJ4fH0AGf+3pVbYo0h0yZllcIeGc7OjoB32bB0u9GW4PpkmdxoJmpjGCmFVWuVbxB7u8R0giNXXFaotfGarbeeBiIJ3jIRLYJwB8K0R5XPA1LH2xPdqfbf; Date: Sat, 7 Apr 2012 14:45:53 -0700 From: Colin D Bennett To: geda-help AT delorie DOT com Subject: Re: [geda-help] Translate DXF to Gerber Message-ID: <20120407144553.05cf48aa@svelte> In-Reply-To: <4F806D9E.1090700@innocent.com> References: <4F805C78 DOT 6030508 AT arius DOT com> <4F806D9E DOT 1090700 AT innocent DOT com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - delorie.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-67-160-113-82.hsd1.wa.comcast.net (svelte) [67.160.113.82]:40581 X-Source-Auth: colin AT gibibit DOT com X-Email-Count: 2 X-Source-Cap: c2t5bGVuO3NreWxlbjtnYXRvcjI5Ny5ob3N0Z2F0b3IuY29t Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q37MpGC3027852 Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 07 Apr 2012 12:38:54 -0400 Gus Fantanas wrote: > Import the DXF file to qCAD; print it as ps (observe the > difference between printing and exporting); convert it to > encapsulated ps with 'ps2epsi'; convert it to pcb using > 'pstoedit' with the '-usbbfrominput' and '-f pcb' options; import > it to PCB and move it to the appropriate layer if necessary. > > From PCB, then, you can generate a Gerber file. I use the above > procedure to import weird board outlines and fancy fonts and > graphics into PCB. One caveat, though: The "vectorness" of the > original is lost; curves are split into short line segments. It loses a degree of smoothness from the original, but it is still a vector image, not a bitmap image. It will scale to any size without pixelating; in most cases you will only see the jagginess of curves if you zoom in very far. There is an option for 'pstoedit' that lets you increase the smoothness of its output (by using shorter line segments). Specify something like “-flat 0.01” to improve output smoothness. > You should be able to generate a vector graphics file in Inkscape > and then export it as epsi, skipping the first three steps > above. This opens up a lot of possibilities, like better fonts, > logos, etc. You can also load a DXF file directly into Inkscape as well instead of using QCAD. Then the process goes like: DXF ---(Inkscape)---> EPS ---(pstoedit)---> PCB Inkscape doesn't have as advanced a DXF processor, so some things aren't rendered true to the original, like font styles, etc., but it has worked well for importing complex board outlines, etc. Regards, Colin