On Sat, Nov 28, 2009 at 5:35 PM, Tim Edwards wrote: > I'm not sure how the above script was ever able to work, but normally > one would use > > source /usr/lib/xcircuit-3.6/xcircuit.tcl > > rather than wrapper.tcl, and xcircuit.tcl will take care of both the > "package require Tk" (which is unnecessary anyway if you have called > the script using "wish" on the command line, or invoked with > "#!/usr/bin/wish" in the first line, which would normally be the > preferred way to do it), and the "xcircuit::start" command. > > The script is not going to work anyway using the undefined "$project" > but I assume you mean to replace it with "[lindex $argv 0]" or > otherwise intend to parse the command line arguments. > > There is a way to run xcircuit without bringing up a window, or at > least to keep the window iconified so that it does not appear, but > I would have to refresh my own memory on that, since I don't have > any examples lying around.
Thanks Tim, I have to drop ::xcircuit::start too. The following works: --------------------------------------------------------------------- source /usr/lib/xcircuit-3.6/xcircuit.tcl ::xcircuit::page load $project.ps ::xcircuit::netlist write sim ::xcircuit::netlist write spice --------------------------------------------------------------------- I have also noticed that the extracted spice netlist with 3.6 has an extension ".spice" whereas 3.4 series had an extension ".spc". regards, Chitlesh _______________________________________________ Xcircuit-dev mailing list [email protected] http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev
