Mail Archives: geda-user/2015/03/25/11:47:44
On Wed, 25 Mar 2015, Bernhard Kraft wrote:
> Hi,
>
> As there were some questions recently upon creating HPGL output or
> output for some 3D modelers a more general question: How are the
> export filters of PCB currently implemented. I mean the ones you can
> choose from File>Export layout: Gerber, PNG, PS, PDF, etc.
>
> Are those hardcoded into PCB or is there any way to add additional
> output filters without recompiling? Or is there some existing codebase
> for transforming .pcb files into another format?
They are plugins (maybe called exporter HIDs?).
The default exporters you listed have their source in the PCB source tree
and are compiled into pcb.
It is (in theory) easy to ship your own plugin - I used to do this with
pcb-gpmi. Others used to provide 3rd party plugins too. The user needs
to have a PCB source and a compiler. In practice if the HID API or other
major parts change in PCB, they tend to bitrot: the PCB developer who
makes the change to PCB can not update random 3rd party plugins.
Again in theory, it wouldn't be hard to get PCB dynamically load the
pugins (from .so files on UNIX), but I am unsure if it is supported at the
moment. If not, it should be easy to write a plugin that can load other
plugins that way. Last time I checked PCB did have -rdynamic on Linux
which allows such .so loaded plugins to access PCB internals.
HTH,
Igor2
- Raw text -