|
发表于 2016-6-17 03:02:51
|
显示全部楼层
这个函数可能是你要的:geGetInstTransform
另外你可以在SKILL API Finder里面找关键字 “Transform”
函数的reference:
geGetInstTransform(d_InstId)
=> list( list( xOffset yOffset ) rotation magnification )
or
geGetInstTransform(
list( dbInstId dbInstId ...)
)
=> list( list( xOffset yOffset ) rotation magnification )
Description
Evaluates a path to an instance returned by dbGetTrueOverlaps and concatenates the overall offset, transform, and magnification of the instance placed within the design hierarchy.
The value returned by geGetInstTransform is a three member list containing the values of the three variables mentioned above. This transform list can be passed to the functions dbCopyFig or dbMoveFig as their third argument to copy or move the shape to the cellView passed to dbGetTrueOverlaps as its first argument.
Arguments
d_InstId This can be a single instId, or a list of instIds in order from top to bottom which describes a hierarchical path to an instance at a lower level.
Value Returned
xOffset yOffset The float values of the x and y offsets.
rotation A string that is the value of the rotation.
magnification the amount of magnification as a float.
Example
geGetInstTransform(
instId )
=> (-3.1 0.9) "R0" 1.0) |
|