Hello Tim,
I've noticed that if one wants to do some scripting with xcircuit,
like the given example:
--------------------------------------------------
load /usr/lib/xcircuit-3.4/xcircuit.so
source /usr/lib/xcircuit-3.4/wrapper.tcl
::xcircuit::start
::xcircuit::page load $filename.ps
::xcircuit::netlist write spice
::xcircuit::quit
-------------------------------------------------
It works fine.
However, if the same example is included in a TCL proc, xcircuit is
unable to catch the global variables XCIRCUIT_VERSION,
XCIRCUIT_REVISION, XCIRCUIT_LIB_DIR and XCOps.
proc xBROKEN { filename } {
load /usr/lib/xcircuit-3.4/xcircuit.so
source /usr/lib/xcircuit-3.4/wrapper.tcl
::xcircuit::start
::xcircuit::page load $filename.ps
::xcircuit::netlist write sim
::xcircuit::netlist write spice
::xcircuit::quit
}
proc xWORKAROUND { filename } {
global XCIRCUIT_VERSION
global XCIRCUIT_REVISION
global XCIRCUIT_LIB_DIR
global XCOps
load /usr/lib/xcircuit-3.4/xcircuit.so
source /usr/lib/xcircuit-3.4/wrapper.tcl
::xcircuit::start
::xcircuit::page load $filename.ps
::xcircuit::netlist write sim
::xcircuit::netlist write spice
::xcircuit::quit
}
Can you please fix it in the next stable release please ( and let me
know for which release it was corrected ) ?
Secondly, compared to magic, tcl console needs the following two lines
in order one can do scripting with xcircuit:
load /usr/lib/xcircuit-3.4/xcircuit.so
source /usr/lib/xcircuit-3.4/wrapper.tcl
while with magic/netgen, only $libdir/magic/tcl/tclmagic.so / load
$libdir/netgen/tcl/tclnetgen.so needs to be loaded.
Can you make xcircuit.so source /usr/lib/xcircuit-3.4/wrapper.tcl
automatically somehow? thus it would unify the scripting process among
all the applications proposed by opencircuitdesign.
kind regards,
Chitlesh
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev