I'm trying to move a set of schematic objects using skill. I'm using the
function schStretch so that I don't loose the connectivity.Suppose, I've a mos instance in a schematic. Using the below commands,
I'm replicating the scenario.css()~>xy => (1.0 1.0) ; the initial location of the
instancetr = list( 1:1 "R0" )schStretch( list(css()) tr )css()~>xy =>(2.0 2.0) ; moved by (1 1) specified in the
But, when the transform is, say
tr = list( 1.008:1 "R0" )schStretch( list(css()) tr )css()~>xy =>(2.00625 2.0)I was expecting the location to be (2.008 1).
Why is this happening? Isn't this what's expected out of this command?
If not what's the command to move an object(all sch objects) by a
distance without loosing the connectivity?
Any help would be appreciated.
The underlying database uses integers to represent coordinates and has a concept of "database units" and "user units".
For schematics the user units are usually "inch" and there are 160 database units per user unit. For example:
Because of that, you cannot represent a user unit of 2.008 in the database, and so it rounds to the nearest database units - hence 2.00625.
In reply to Andrew Beckett:
Hi Andrew, Thanks a lot for the quick reply and resolving the confusion.Regards,Leo