Transform.ChangeBasis

Hi,
I am trying to use Transform.ChangeBasis in order to change the orientation of the objects.
However, it seems that my resulting plane is not correct. I get a ZY plane instead of ZX.
GH element Orient seems to be giving correct result

Dim crc As New Circle(plane.WorldXY, 5)
Dim ac As New ArcCurve(crc)
Dim xfrm As Transform = Transform.ChangeBasis(Plane.WorldXY, Plane.WorldZX)
ac.Transform(xfrm)

What can be wrong?

Thanks,
Dmitriy

To me, the order of planes in the ChangeBasis method is always the other way in which I think of them. Try Transform.ChangeBasis(Plane.WorldZX, Plane.WorldXY) instead.

This works. :slight_smile:
Thanks!