Anyone know how to get the box size in real-life u...
# magic
p
Anyone know how to get the box size in real-life units, in a reliable way? I'm not getting how these things relate:
% box 0 0 20um 10um
Root cell box:
width x height  (   llx,  lly  ), (   urx,  ury  )  area (units^2)
microns:  20.000 x 10.000  ( 0.000,  0.000), ( 20.000,  10.000)  200.000
lambda:   2000.00 x 1000.00  (  0.00,  0.00 ), ( 2000.00,  1000.00)  2000000.00
internal:   4000 x 2000    (     0,  0    ), (  4000,  2000 )  8000000
% box size
4000 2000
% tech lambda
1 2
How do I get from box size back to 20x10 um, in a general way? The fact
box 0 0 20 20
makes a box of 1um squared and reports a size of 200x200 is pretty mystifying to me.
m
@Pat Deegan did you figure this out? If the commands do work on the current grid setting, then with a 1um grid, running
box 0 0 20 20
would create a 1um square box (which would be 200x200 in internal units).
p
Not really... This, to me is a bit weird, uhm counterintuitive:
% box position 0 0
% box width
20
% box move e [box width]
% box position
4000 0
but managed to work around it with:
% box position 0 0
% box move e [box width]i
% box position
20 0
but I still don't know how to know the size of the box in real life, all I have is some internal representation I don't care about/depends on grid size/don't know how to convert.
Ah, well cancel that last comment (still getting used to this threads thing, which splinters my conversations more than in concentrates them, I must be using them wrong). Tim has answered... there is sanity, or a way to achieve it, and a conversion function (magic::i2u) and a way to get everything doing a single thing--i.e. using internal units everywhere.
👍 1