Dear Chitlesh,

> With the 3.4 series, I was able to generate spice netlists with this tcl 
> script
> ---------------------------------------------------------------------
> package require Tk
> load   /usr/lib/xcircuit-3.6/xcircuit.so
> source /usr/lib/xcircuit-3.6/wrapper.tcl
> 
> ::xcircuit::start
> ::xcircuit::page load $project.ps
> ::xcircuit::netlist write sim
> ::xcircuit::netlist write spice
> ---------------------------------------------------------------------
> 
> Now with the 3.6.163 version and tk-8.5.7-2.fc12.i686, the same script
> fails with
> 
> 
> wish ../scripts/extract.tcl schematic invertor
> Error in startup script: bad option ".dialog.textent.title.field":
> must be make, type, insert, justify, flipinvariant, visible, font,
> scale, encoding, style, family, substring, text, latex, list, replace,
> or position

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.

To have "package require XCircuit" work requires that the package
name be registered with Tcl using "auto_mkindex" to create a
tclIndex file, and this file (and possibly others) must be somewhere
in the directory hierarchy of one of the entries of $tcl_pkgPath
(a built-in Tcl variable;  e.g., do "tclsh" and enter "set tcl_pkgPath").
Personally, I find it easier to just have XCircuit bootstrap itself
into Tcl, which is why I have xcircuit set up the way it is.

                                                ---Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: [email protected]    |
| Open Circuit Design, Inc.      | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-5030               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to