Harry Snell
12/02/2021, 12:38 PMMayank Gupta
12/03/2021, 11:04 AMHarry Snell
12/03/2021, 11:07 AMMayank Gupta
12/03/2021, 11:08 AMTim Edwards
12/03/2021, 2:29 PMproperty FIXED_BBOX
. Otherwise, you can get the geometrical bounds using load <cell>; select top cell; box values
. The returned value will be in internal database units. That may be sufficient for scripting purposes; if not, and you need units in, say, microns, then multiply all the box values by the value returned by cif scale out
(which is the conversion scalefactor between internal units and microns).Harry Snell
12/03/2021, 2:29 PMHarry Snell
12/03/2021, 2:54 PMHarry Snell
12/03/2021, 2:56 PMTim Edwards
12/03/2021, 2:59 PMset bbox [box values]
, something like this should work:
set scf [cif scale out]
select top cell
set bbox [box values]
set llx [expr [lindex $bbox 0] * $scf]
set lly [expr [lindex $bbox 1] * $scf]
set urx [expr [lindex $bbox 2] * $scf]
set ury [expr [lindex $bbox 3] * $scf]
Harry Snell
12/03/2021, 3:00 PMload <cell>; select top cell; box values
methodHarry Snell
12/03/2021, 3:01 PMHarry Snell
12/03/2021, 3:01 PMtech load [tech];
load [cell];
select top cell;
box values
Harry Snell
12/03/2021, 3:02 PMmagic -dnull -noconsole mag/cellsize.tcl
, it doesn't print the box values which is what I would expect it to doTim Edwards
12/03/2021, 3:15 PMbox values
does not print to stdout; it returns a result which is a list. The behavior of the console is to echo all results, but this is console behavior, not Tcl/Tk behavior. So if you want the result printed you will need to do puts stdout [box values]
.Harry Snell
12/03/2021, 3:16 PMHarry Snell
12/03/2021, 3:16 PMHarry Snell
12/03/2021, 3:17 PM