How to transform top level bBox into an instance bBox(top le

P

PolyPusher

Guest
I am trying to Convert bBox from Top to Bottom, but couldn't get the
answer I was needing.


TopbBox=((320.54 -200.635) (320.94 -196.59))
CellTransform=car(geGetSelectedSet())~>transform which equals ((307.21
-192.96) "MXR90" 1.0)

geTransformUserBBox(TopbBox CellTransform) which returns ((106.575
127.58) (110.62 127.98))

when I was expecting, by drawing the object with edit in place to be
sure, (((-7.675 13.33)(-3.63 13.73)))

What did I do wrong?

Thank you in advance for any help,
PolyPusher
 
On Jan 26, 11:29 am, PolyPusher <eric.d.fitzsimm...@gmail.com> wrote:
I am trying to Convert bBox from Top to Bottom, but couldn't get the
answer I was needing.

TopbBox=((320.54 -200.635) (320.94 -196.59))
CellTransform=car(geGetSelectedSet())~>transform which equals ((307.21
-192.96) "MXR90" 1.0)

geTransformUserBBox(TopbBox CellTransform) which returns ((106.575
127.58) (110.62 127.98))

when I was expecting, by drawing the object with edit in place to be
sure, (((-7.675 13.33)(-3.63 13.73)))

What did I do wrong?

Thank you in advance for any help,
PolyPusher
"If it was a single level, you'd use dbTransformBBox() with the
inst~>transform (actually that's going to be the wrong way around -
that would transform from the instance coordinate space to the top
level, not the other way. There is a function in IC5141 called
icDbInvertTransform, but it's not documented in IC61X (it's part of
Preview so whilst the function still exists in the IC614 build, it may
be removed at some point) - so it would be safer to write your own
(not hard). If you want to handle more than one level of hierarchy,
you'd need to concatenate the transformations down through the
hierarchy to the right instance by using dbConcatTransform.

If the path to the instance is in the same form as returned by
dbGet*Overlaps (e.g. dbGetTrueOverlaps) you could use
geGetInstTransform to get the complete transformation - but again,
this allows you to transform something from the level 2 coordinate
space to level 0.

Regards,

Andrew."

I found this post by Andrew that answers my question. The
inst~>transform is for transforming form the instance up,
icDbinvertTransform returns the opposite. From the top to the Master.

TopbBox=((320.54 -200.635)(320.94 -196.59))
CellTransformFromTopToMasterCell=icDbInvertTransform(geGetEditRep()
car(geGetSelectedSet())~>transform)
geTransformUserBBox(TopbBox CellTransformFromTopToMasterCell)

Thank you,
Eric
 
On 01/30/12 14:47, PolyPusher wrote:
I found this post by Andrew that answers my question. The
inst~>transform is for transforming form the instance up,
icDbinvertTransform returns the opposite. From the top to the Master.

TopbBox=((320.54 -200.635)(320.94 -196.59))
CellTransformFromTopToMasterCell=icDbInvertTransform(geGetEditRep()
car(geGetSelectedSet())~>transform)
geTransformUserBBox(TopbBox CellTransformFromTopToMasterCell)

Thank you,
Eric
Alternatively if this is for handling edit in place, you may just want
to use geWindowToEditPoint - so in the case of a bBox, you'd do:

newBBox=foreach(mapcar point TopbBox geWindowToEditPoint(windowId point))

Andrew.
 
On Jan 31, 12:37 am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
On 01/30/12 14:47, PolyPusher wrote:



I found this post by Andrew that answers my question.   The
inst~>transform is for transforming form the instance up,
icDbinvertTransform returns the opposite.  From the top to the Master..

TopbBox=((320.54 -200.635)(320.94 -196.59))
CellTransformFromTopToMasterCell=icDbInvertTransform(geGetEditRep()
car(geGetSelectedSet())~>transform)
geTransformUserBBox(TopbBox CellTransformFromTopToMasterCell)

Thank you,
Eric

Alternatively if this is for handling edit in place, you may just want
to use geWindowToEditPoint - so in the case of a bBox, you'd do:

newBBox=foreach(mapcar point TopbBox geWindowToEditPoint(windowId point))

Andrew.
Andrew,

In this case it wasn't for edit in place, but I do very much
appreciate your reply. We needed to "push" routing from level 0 to
level 1.

Thank you for your support,
Eric
 

Welcome to EDABoard.com

Sponsor

Back
Top