Mail Archives: geda-user/2013/06/27/03:25:48
On 26. 6. 2013 3:51, Kai-Martin Knaak wrote:
> Is your exporter available for download somewhere?
Yes, now it is:
http://static.bastl.sk/pcb/0001-OpenSCAD-export-filter-0.1.patch
Apply the patch to current master/HEAD and build the PCB
(autogen,configure,make).
The filter is named "scad", dialog options are self-explaining (I guess).
Please increase the object limits in OpenSCAD - exported layout is quite
complex and limits are very low.
The filter is not fully tested, so some issues can appear. One of them
is imperfect board shape with openings (it's problem of OpenSCAD
preview, I guess - result is perfect in STL export). Again, some
motivation images:
Modified test design: http://static.bastl.sk/pcb/test-pcb1.png
The OpenSCAD complete model (preview in OpenSCAD):
http://static.bastl.sk/pcb/test-scad3.png
The same, bottom side (preview in OpenSCAD):
http://static.bastl.sk/pcb/test-scad4.png
And the model exported to STL and imported into FreeCAD:
http://static.bastl.sk/pcb/test-stl1.png
Regarding models:
Place all models into <path_to_pcb_binary>/../share/pcb/scad/models/
directory. Models should have all dimensions in milimeters, they should
lie on XY plane with center on Z axis and they should have the same
orientation as footprint.
Model has to generate objects. if you define your model as OpenSCAD
model, you have to instantiate it (this will be changed). Example model:
http://static.bastl.sk/pcb/0805.scad
The file with model should have the same name as contents of element's
"Description" field plus .scad extension. Also the footprint with the
same name (and with .fp extension) should exist somewhere in PCB
footprint library. The footprint is required for precise detection of
rotation angle. If the footprint does not exist, the alternate method is
used (taken from BOM export filter), but this is not tested yet. For
example, if element has Description 0805, footptint file 0805.fp and
model file 0805.scad should exist on proper locations.
There is more possibilities how to handle 3D models. It is very similar
to model handling in VRML filter (see http://pcb.bastl.sk), but it is
not tested yet.
I will be AFK until end of week, I will fix remaining issues next week.
Milan
> ---<)kaiamrtin(>---
- Raw text -