Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Peter TB Brett
On Friday 19 November 2010 12:22:05 Kai-Martin Knaak wrote: > I'd like to replace this with the name of the schematic. The lp command can > set the base name of the file with the option -t. But how would I teach > gschemrc to automatically fill in the file name of the current schematic? > Is there

gEDA-user: Calling Xspice code models through gnetlist

2010-11-19 Thread clif
Say, does anyone know how to get spice-sdb or the like to pass non-default port types to ngspice for the xspice code models? Most of the standard code models default to single ended sources eg. %v(1) where the %v() is optional, but often you want a differential input. This means you double t

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread John Doty
On 11/19/2010 08:59 PM, kai-martin knaak wrote: John Doty wrote: Well, it shouldn't segfault, but I'm not surprised you can't evaluate it in gschemrc before there is a selected file. What did you expect to happen? > From the doxygen comment: * This function gets the whole filename

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread kai-martin knaak
Paul Tan wrote: > Hope it helps. I still get segfaults. My get_selected_filename procedure looks like this now: /--- SCM get_selected_filename(GSCHEM_TOPLEVEL *w_current) { gchar* s; SCM return_value; exit_if_null(w_current); s = g_strdup(w_current->toplevel->pag

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread kai-martin knaak
John Doty wrote: > Well, it shouldn't segfault, but I'm not surprised you can't > evaluate it in gschemrc before there is a selected file. What > did you expect to happen? >From the doxygen comment: * This function gets the whole filename of the current schematic. * Specifically, the page_fil

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Paul Tan
Hi Kai-Martin Knaak, (depending on your email system, some lines in the code below may be just a long single line. So I am re-sending with the fix for this. Hope it comes out ok now) Oh, I remember there is a bug in the gschem/src/g_funcs.c file. You may want to change the "get_selected_filename

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Paul Tan
Hi Kai-Martin Knaak, Oh, I remember there is a bug in the gschem/src/g_funcs.c file. You may want to change the "get_selected_filename" function in "g_funcs.c" file, (around line number 299), as follows: /* = */ SCM get_select

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread John Doty
On 11/19/2010 07:18 PM, kai-martin knaak wrote: Paul Tan wrote: (get-selected-filename) is a Gschem Scheme procedure which returns the current page filename as string. Unfortunately, my gschem segfaults right away, if gschemrc contains the (get-selected-filename) procedure. It segfau

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread timecop
3D renderings of through-hole components is great and all, but this IS 2010, anyone still using through-hole stuff can just use Fritzing or something. How about adding relevant features to PCB, like boolean operations on copper pours that aren't a hack or ... hey, who am I kidding. -tc On Sat, No

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 02:05 +, Peter Clifton wrote: > Wings3D can export to most if not all the formats I'm interested in, but > now you make me feel stupid.. I couldn't figure out how to get started > with it other than opening existing models. Since you say it is newbie > friendly, I'll go b

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread kai-martin knaak
Paul Tan wrote: > (get-selected-filename) is a Gschem Scheme procedure which > returns the current page filename as string. Unfortunately, my gschem segfaults right away, if gschemrc contains the (get-selected-filename) procedure. It segfaults even if the line is reduced to (define nam

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 03:00 +0100, kai-martin knaak wrote: > Peter Clifton wrote: > > > when PCB+GL+3D lands and users start creating models). > ^ > I'd love to see PCB+GL enter the main repo rather than wait until > 3D is mature enough, too. I've been slowly tinkering with stab

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 23:43 +0100, Philipp Klaus Krause wrote: > Let's not forget other free software, like wings3d, which may be less > powerful compared to blender, but is much more newbie-friendly, and > quite good for modelling (which it focuses on more than blender). AFAIK > it has wuite a nu

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread kai-martin knaak
Peter Clifton wrote: > when PCB+GL+3D lands and users start creating models). ^ I'd love to see PCB+GL enter the main repo rather than wait until 3D is mature enough, too. ---<)kaimartin(> -- Kai-Martin Knaak Öffentlicher PGP-Schlüssel: http://pgp.mit.edu:11371/pks/lookup?o

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 02:39 +0100, kai-martin knaak wrote: > Did I mention, that mesh formats are a one way road, when it > comes to construction? > (Please tell me, that I don't need to make that point over and over > again ;-) Got it ;) -- Peter Clifton Electrical Engineering Division, Engi

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread kai-martin knaak
Bert Timmerman wrote: > http://openscad.org/ > > And the beginning of an OpenSCAD exporter for pcb, on top of a recent > (current) clone of the pcb git repository: > > https://github.com/bert/pcb-openscad > > Please give me your thoughts and opinions on both. I see a nice way to produce 3D mod

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 11:59 +1100, Russell Shaw wrote: > If fewer polygons are used but with decent shading, the main effect > is that the silhouette has a few visible corners. That wouldn't matter > much for resistors. > > http://en.wikipedia.org/wiki/Gouraud_shading > http://en.wikipedia.org/wi

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread kai-martin knaak
Peter Clifton wrote: >> I'm sure one day we'll be able to export the whole thing to a format >> which can be used in blender for those times you need super >> realistic renderings ;) VRML is already such a format :-) > I wish I knew blender This close-up of a laser diode package shows what ble

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread kai-martin knaak
Peter Clifton wrote: > I'm coming round to the idea that 3D is more than just eye candy > if we do it nicely. yes! > It helps visualise component placement and layout issues > far more readily than just looking at flat layers can do. Even better: It aids the process of enclosing design in a ve

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Russell Shaw
On 20/11/10 11:43, kai-martin knaak wrote: John Griessen wrote: STL seems to work fine for those shapes - your tool just chooses triangles that are long and skinny to accurately model the side of a cylinder for instance. ... and the file size explodes. If the wires of thru hole components are

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Tom Sylla
It looks like you are almost to the next step, but probably the biggest value of having good 3d representations is the ability to do clearance checking as a DRC. This is not just visualization, it is rule-driven placement and flagging of errors when you place components in conflict with each other,

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread kai-martin knaak
John Griessen wrote: > STL seems to work fine for those shapes - your tool just chooses > triangles that are long and skinny to accurately model the side > of a cylinder for instance. ... and the file size explodes. If the wires of thru hole components are supposed to look vaguely realistic on

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 11:01 +1100, Russell Shaw wrote: > Are you using a spatial data structure to omit emitting polygons > for off-screen components? PCB does that (spatial data-structures) already for rendering layers, so yes. With the 3D perspective view, I fall back to rendering the whole boa

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Russell Shaw
On 20/11/10 10:02, Peter Clifton wrote: On Fri, 2010-11-19 at 13:06 -0800, Colin D Bennett wrote: That suits me just fine.. OpenGL _likes_ rendering triangles, and any other geometry primitives are extra work to implement ;) But wouldn't support for higher-level shapes be superior to triangle

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Rubén Gómez Antolí
Hi: El 19/11/10 23:07, Colin D Bennett escribió: On Fri, 19 Nov 2010 15:24:05 -0500 Patrick Doyle wrote: On Fri, Nov 19, 2010 at 1:23 PM, Peter Clifton wrote: On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: Perhaps it ranks as "nice to have", especially if there is some good modelli

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Philipp Klaus Krause
Am 19.11.2010 23:07, schrieb Colin D Bennett: > > It has to be mentioned that Blender is free and open source but Google > Sketchup is not. Let's not forget other free software, like wings3d, which may be less powerful compared to blender, but is much more newbie-friendly, and quite good for mode

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 14:07 -0800, Colin D Bennett wrote: > It has to be mentioned that Blender is free and open source but Google > Sketchup is not. I took that as known, but I don't disprove of using good commercial software to do a job. I find Blender quite challenging to work with. -- Pete

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 13:06 -0800, Colin D Bennett wrote: > > That suits me just fine.. OpenGL _likes_ rendering triangles, and any > > other geometry primitives are extra work to implement ;) > > But wouldn't support for higher-level shapes be superior to triangle > meshes for high-quality rende

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 15:24 -0500, Patrick Doyle wrote: > So then why not use COLLADA and blender? (I'm not trying to push for > this, or to pick a fight, I'm just curious and trying to learn > something totally new to me.) 1. KiCad 2. VRML is easier to implement perhaps? 3. Blender can also save

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Colin D Bennett
On Fri, 19 Nov 2010 15:24:05 -0500 Patrick Doyle wrote: > On Fri, Nov 19, 2010 at 1:23 PM, Peter Clifton > wrote: > > On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: > >> Perhaps it ranks as "nice to have", especially if there is some > >> good modelling software which only makes that fo

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread John Griessen
On 11/19/2010 03:06 PM, Colin D Bennett wrote: Through-hole parts tend to have more round shapes that would be much more expensive to accurately model with triangle meshes: cylindrical resistors, disc-shaped ceramic capacitors, etc. STL seems to work fine for those shapes - your tool just choos

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Colin D Bennett
On Fri, 19 Nov 2010 17:27:45 + Peter Clifton wrote: > On Fri, 2010-11-19 at 01:29 +0100, kai-martin knaak wrote: > > Peter Clifton wrote: > > > > > stl (very nice) > > > > IMHO, stl is a mesh only format. That is, everything is made of > > triangles -- no squares, no circles, no real curvat

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Paul Tan
Hi Kai-Martin Knaak, oops, correction, missing a ")" for the last Scheme code example. (print-command (string-append "lp -d PDF -t \"" (basename (get-selected-filename)) "\"")) Best Regards, Paul Tan -Original Message- From: Kai-Martin Knaak To: geda-u...@seul.org Sent: Fri, Nov

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Patrick Doyle
On Fri, Nov 19, 2010 at 1:23 PM, Peter Clifton wrote: > On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: >> On Fri, 2010-11-19 at 06:15 -0500, Patrick Doyle wrote: >> > Not knowing anything of which I speak (write?), would COLLADA >> > (https://collada.org/mediawiki/index.php/COLLADA_-_Digi

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Paul Tan
Hi Kai-Martin Knaak, (get-selected-filename) is a Gschem Scheme procedure which returns the current page filename as string. May be you can try something like this: (print-command (string-append "lp -d PDF -t " (basename (get-selected-filename))) The above works only if your Gschem filename

Re: gEDA-user: New branch of PCB

2010-11-19 Thread Peter TB Brett
On Tuesday 16 Nov 2010 11:09:34 timecop wrote: > With TopoR having a freeware version for 2 layers and up to 256 nets > (or some other fairly high for 'hobby' use limitation), there's not > really any point on bothering improving built in autorouter... Even this single sentence contains so many fa

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: > On Fri, 2010-11-19 at 06:15 -0500, Patrick Doyle wrote: > > Not knowing anything of which I speak (write?), would COLLADA > > (https://collada.org/mediawiki/index.php/COLLADA_-_Digital_Asset_and_FX_Exchange_Schema) > > fit the bill? I just

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 06:15 -0500, Patrick Doyle wrote: > Not knowing anything of which I speak (write?), would COLLADA > (https://collada.org/mediawiki/index.php/COLLADA_-_Digital_Asset_and_FX_Exchange_Schema) > fit the bill? I just happened to stumble across it last week on > something totally u

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 17:30 +, Richard Barlow wrote: > On Fri, 2010-11-19 at 17:21 +, Peter Clifton wrote: > > http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup3.png > > http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup4.png > > Wow, they loo

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Richard Barlow
On Fri, 2010-11-19 at 17:21 +, Peter Clifton wrote: > http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup3.png > http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup4.png Wow, they look amazing! > Perhaps pixel shaders and bump mapping is a little ov

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 01:29 +0100, kai-martin knaak wrote: > Peter Clifton wrote: > > > stl (very nice) > > IMHO, stl is a mesh only format. That is, everything is made of > triangles -- no squares, no circles, no real curvatures. There are > no macros, no loops, or repetitions. That suits me ju

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread Stephan Boettcher
chrysn writes: > hi geda-users, > > in the process of cnc-milling a pcb with a custom shape using pcb2gcode > [1], i created a polygon on a separate layer. in the following > processing steps, i need a gerber file that contains just that polygon > (without holes for the pins, becaus they don't be

gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup3.png http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup4.png Perhaps pixel shaders and bump mapping is a little overkill for a few resistors, but it has kept me amused for a while. I'm working on a VR

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread Stefan Salewski
On Fri, 2010-11-19 at 23:56 +0900, timecop wrote: > >sed -e 's/^\tPin/# &/' -e 's/^\t\(SymbolLine\|Line\)/# &/' -e > > 's/^Via/# &/' > In my windows PCB CAD, I click 'Export Gerber' and click a layer. > If I don't want vias or pins there, I uh,, click a checkbox. > GUIs exist for a reason.

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread Kovacs Levente
On Fri, 19 Nov 2010 23:56:50 +0900 timecop wrote: > In my windows PCB CAD I think the OP wants information about gEDA's PCB editor and not your PCB CAD. Your comment is irrelevant. -- Kovacs Levente Voice: +36705071002 ___ geda-user mailing lis

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread John Doty
On Nov 19, 2010, at 7:56 AM, timecop wrote: >>sed -e 's/^\tPin/# &/' -e 's/^\t\(SymbolLine\|Line\)/# &/' -e >> 's/^Via/# &/' > In my windows PCB CAD, I click 'Export Gerber' and click a layer. What if there's no checkbox for the function you need? > If I don't want vias or pins there,

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread timecop
>        sed -e 's/^\tPin/# &/' -e 's/^\t\(SymbolLine\|Line\)/# &/' -e > 's/^Via/# &/' In my windows PCB CAD, I click 'Export Gerber' and click a layer. If I don't want vias or pins there, I uh,, click a checkbox. GUIs exist for a reason. This is one of those good reasons. -- 1966 called, wants i

gEDA-user: exporting single pcb layers

2010-11-19 Thread chrysn
hi geda-users, in the process of cnc-milling a pcb with a custom shape using pcb2gcode [1], i created a polygon on a separate layer. in the following processing steps, i need a gerber file that contains just that polygon (without holes for the pins, becaus they don't belong to the outline). my cu

gEDA-user: current working file name in gschemrc

2010-11-19 Thread Kai-Martin Knaak
Currently, my print command in gschemrc is (print-command "lp -d PDF") This prints a PDF of the current schematic via cups-pdf. The PDF file appears in $HOME/PDF/ as job_1296-untitled_document.pdf I'd like to replace this with the name of the schematic. The lp command can set

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Patrick Doyle
On Thu, Nov 18, 2010 at 10:01 PM, kai-martin knaak wrote: > > Looks like there is no open 3D exchange format that fits the > need of pcb: > > a) render a beautiful image of a populated board > > b) integrate pcb in a 3D work-flow to fit the board into some > tight space. > > The existing formats a