How to convert top level bBox into a instance bBox ?

C

Charley

Guest
Dear All,

I have a shape which is over a instance , the shape's bBox is apply
to level 0 coordinate ,i.e (5.075:3.16 5.335:3.52),
I want the bBox converts into the instance's coordinate . It's
similar to Edit-In-Place , But the instance is Read-Only .
;; Convert bBox from Top to Bottom

How to do it ?

Thank you,
Charley
 
You can use the geTransformUserBBox() function, supply the bounding
box as the first
argument and the "transform" as the second, this can be obtained from
the instance -
for example, if the instance is selected, you can do:
car(geGetSelectedSet())~>transform

so all together it would be:

geTransformUserBBox(list(5.075:3.16 5.335:3.52)
car(geGetSelectedSet())~>transform)
=> some_new_bbox
 
On 8月27日, 下午11時54分, Loz Davis <lozmda...@gmail.com> wrote:
You can use the geTransformUserBBox() function, supply the bounding
box as the first
argument and the "transform" as the second, this can be obtained from
the instance -
for example, if the instance is selected, you can do:
car(geGetSelectedSet())~>transform

so all together it would be:

geTransformUserBBox(list(5.075:3.16  5.335:3.52)
car(geGetSelectedSet())~>transform)
=> some_new_bbox

Dear Davis,

==> some_new_bbox is not what I want , when I open the instance , the
some_new_bbox is not same as in the location.
I want is like push some_new_bbox into the instance ,
e.g. I draw a rectangle shape(On level 0) over the instance (On
Level 1), I don't need to open the instance in another cellview ,
Just liker using Edit-In-Place, the some_new_bbox is transformed
inside the instance.
When I open the instance , using the some_new_bbox to draw a rectangle
shape .

Thank you,
Charley
 

Welcome to EDABoard.com

Sponsor

Back
Top