X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Mon, 23 Mar 2015 07:36:14 +0100 (CET) X-X-Sender: igor2 AT igor2priv To: geda-user AT delorie DOT com X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" From: gedau AT igor2 DOT repo DOT hu Subject: Re: [geda-user] why there is no HPGL export from gEDA PCB? In-Reply-To: <201503230608.t2N68xk7032261@envy.delorie.com> Message-ID: References: <201503230608 DOT t2N68xk7032261 AT envy DOT delorie DOT com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 On Mon, 23 Mar 2015, DJ Delorie wrote: > >> I have now 'upgraded' to gEDA PCB for my layout work and find it quite >> convenient with a few exceptions. For one, there is no HPGL output, which >> means I cannot do my PCB fabrication using the plotter. >> >> Is there any way to get HPGL from a raster file such as PS? > > PCB's internals are not raster; what you want is to write an exporter > HID for pcb that exports the internal data files directly to your > plotter. I don't think such a beast exists, although the ps > (Postscript) exporter is probably close to what you want. > > As for "why hasn't it been done yet"... because nobody who wanted it > done has taken the time to do it yet ;-) I have an old IBM pen plotter that speaks HPGL. When I was playing around with pcb-gpmi [1], one of my examples was a minimalistic HPGL exporter written in awk [2]. It was not a proper HPGL exporter, just a quick hack in 81 lines of script: it didn't do much, only plotted the wireframe of lines - no arcs, polys or vias. It was more about trying awk embedded in PCB than about really plotting my PCBs. However, it demonstrates that such an exporter is possible and shouldn't be too hard, especially when done from scripts. Depending on what exactly should be plotted (e.g. polys filled with horizontal lines?), such an exporter should be doable properly in a few days or at most weeks. Althought the source is still available, pcb-gpmi has bitrotten since. I still have plans to merge it in my new fork (pcb-rnd) but I am not aware of any effort for allowing such embedded scripts in mainline PCB. Of course a HGPL exporter is easily possible in C too, just takes a few lines of code more. Regards, Igor2 [1] http://repo.hu/projects/pcb-gpmi/ [2] http://repo.hu/projects/pcb-gpmi/plugins/export_hpgl.awk