X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <51B6CDB6.1010909@estechnical.co.uk> Date: Tue, 11 Jun 2013 08:11:50 +0100 From: Ed Simmons User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: geda-user AT delorie DOT com CC: Matthew Sager Subject: Re: [geda-user] 3D modelling and gEDA References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------030708090707070709090601" X-Authenticated-As: ed AT estechnical DOT co DOT uk Reply-To: geda-user AT delorie DOT com This is a multi-part message in MIME format. --------------030708090707070709090601 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 11/06/13 02:43, Matthew Sager wrote: > 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 Hi Matthew, That's an awesome script! It would be great to have this as an exporter in PCB... :D Thanks for sharing this, Ed --------------030708090707070709090601 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 11/06/13 02:43, Matthew Sager wrote:
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
Hi Matthew,

That's an awesome script! It would be great to have this as an exporter in PCB...

:D

Thanks for sharing this,

Ed
--------------030708090707070709090601--