[CONNECT NET] How to transform or move TextElement

Hi,

I use following code to move elements, but it doesn't work for text elements, microstation connect crashes when replace element. What is wrong?

Dim oTransform2 As DTransform3d = DTransform3d.FromTranslation(oPMove.X, oPMove.Y, oPMove.Z)
Dim oTInfo2 As BDPN.TransformInfo = New BDPN.TransformInfo(oTransform2)

oElement.ApplyTransform(oTInfo2)

oElement.ReplaceInModel(oElement)


many thanks