Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[Connect update 4, VBA COM API ] Problem with TextElement

$
0
0

My system is windows 7, vs 2013 and Connect ms10040046en_updt4

As far as I can tell, there are problems with TextElement. I have tested VBA and COM API (C# and VB) .

There is a problem with TextElement.Origin and DesignFile Resolution. 

 Dim pnt As Point3d
  pnt = Application.Point3dFromXYZ(100, 200, 300)
 Dim txt As TextElement
 Set txt = Application.CreateTextElement1(Nothing, "point", pnt, Application.Matrix3dIdentity)
 Debug.Print txt.Origin.X
  Debug.Print txt.Origin.Y
   Debug.Print txt.Origin.Z
   
   pnt = Application.Point3dFromXYZ(1, 2, 3)
   txt.Origin = pnt
  Debug.Print txt.Origin.X
  Debug.Print txt.Origin.Y
   Debug.Print txt.Origin.Z


best regardes,
Nenad



Viewing all articles
Browse latest Browse all 7260


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>