delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/06/10/21:44:39

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=IirUsbXThvO+ZY577lZWqFI2eNTA2sl7y9PjquBZMnI=;
b=UNEll3HmagWANUp9s7VVRlTFnE5NG14mWMAqPphKB6nYbkbDGvZJtvzYDjjQjFCQCc
urCvX5idJSL/6loh7FsBfwNm5vx2lK3eKbw9eDqCf4zoCdT+I/VZWfqSGvlsCA4DHYjo
62pERO0EHSibNtg4yMRdejOdu33Fr2owBlC3AiXdsfblLDsivOyL82DE5FBJ8fRE1q+P
FRZIVW3ov6KDNOKWUtau1ILYjGQJzlEa5Hru5cDGFrRItVGYn9mP60kGlqQry8/zu7Wk
6Tp41f6pTGgat1BL0trM54hW9KuQyPhtf99P9v+BCIxsrWz7ObhvLamD9IPHN9tX22IC
xb9A==
MIME-Version: 1.0
X-Received: by 10.229.10.194 with SMTP id q2mr4807231qcq.132.1370915023228;
Mon, 10 Jun 2013 18:43:43 -0700 (PDT)
Date: Mon, 10 Jun 2013 21:43:43 -0400
Message-ID: <CAK=z9GWkMwS3NiLEgpvWuPgBVrGB+sHqb7DLCgYZTC3C1OyLSg@mail.gmail.com>
Subject: [geda-user] 3D modelling and gEDA
From: Matthew Sager <matthewsager AT gmail DOT com>
To: gEDA user mailing list <geda-user AT delorie DOT com>
Reply-To: geda-user AT delorie DOT com

--001a11c35e2cfa369304ded70672
Content-Type: text/plain; charset=ISO-8859-1

Hi everyone,

I created a script to help me make a 3D model of a populated PCB. I thought
I would share in case someone else has a need for this.  I am using a
combination of Gschem, PCB, OpenSCAD, and my custom perl script.  The
script just acts like a virtual pick and place machine.

Below is a link to the example project that I created. (The compressed file
at the bottom of the page has the schematic, PCB, OpenSCAD models, and Perl
script in it.  The PCB and models all use mm as the units.)
To run the script pcbto3d.pl in the project directory.
It will create a file called "balance_sensors.scad"  that you can open and
rotate around in OpenSCAD.
https://sites.google.com/site/matthewsager/home/projects/electronicsshop/3dgeda

Details about how it works...
1. I added the 3D models to the schematic symbols then use one of the BOM
backends to export the redefs and 3D model relationship.  (Note the PCB
footprints and 3D models need to have the same origin point.)
2. Export xy file to be able to find where all the 3D models location and
rotation.
3. Export the gerber data to get the plated drill hole locations so I could
show all the mounting holes and vias.
4. Read the work are size from the PCB file. (Note the script does not use
the outline layer.)
5. Create the OpenSCAD file of the assembled PCB.

Enjoy,
Matthew
-- 
My homepage.
http://sites.google.com/site/matthewsager/home

--001a11c35e2cfa369304ded70672
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Hi everyone,<br><br></div>I created a script to =
help me make a 3D model of a populated PCB. I thought I would share in case=
 someone else has a need for this.=A0 I am using a combination of Gschem, P=
CB, OpenSCAD, and my custom perl script.=A0 The script just acts like a vir=
tual pick and place machine.=A0 <br clear=3D"all">
</div><div><div><div><div><br>Below is a link to the example project that I=
 created. (The compressed file at the bottom of the page has the schematic,=
 PCB, OpenSCAD models, and Perl script in it.=A0 The PCB and models all use=
 mm as the units.)<br>
To run the script <a href=3D"http://pcbto3d.pl">pcbto3d.pl</a> in the proje=
ct directory.=A0 <br>It will create a file called &quot;balance_sensors.sca=
d&quot;=A0 that you can open and rotate around in OpenSCAD.<br><a href=3D"h=
ttps://sites.google.com/site/matthewsager/home/projects/electronicsshop/3dg=
eda">https://sites.google.com/site/matthewsager/home/projects/electronicssh=
op/3dgeda</a><br>
<br>Details about how it works...<br>1. I added the 3D models to the schema=
tic symbols then use one of the BOM backends to export the redefs and 3D mo=
del relationship.=A0 (Note the PCB footprints and 3D models need to have th=
e same origin point.)<br>
</div><div>2. Export xy file to be able to find where all the 3D models loc=
ation and rotation.<br></div><div>3. Export the gerber data to get the plat=
ed drill hole locations so I could show all the mounting holes and vias.<br=
>
</div><div>4. Read the work are size from the PCB file. (Note the script do=
es not use the outline layer.)<br></div><div>5. Create the OpenSCAD file of=
 the assembled PCB.<br></div><div><br></div><div>Enjoy,<br></div><div>Matth=
ew<br>
</div><div>-- <br>My homepage.<br><a href=3D"http://sites.google.com/site/m=
atthewsager/home">http://sites.google.com/site/matthewsager/home</a>
</div></div></div></div></div>

--001a11c35e2cfa369304ded70672--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019