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

[CONNECT] U13 VBA Text Placement does not recognize TextStyle Height and Width Values

$
0
0

Hello,

I have a problem with placing text with vba at different text height and with values. The follwoing code snipset works well in MS V8i SS10 but in CONNECT I have no idea what ist going wrong.

Sub test()
    Dim TextElement As TextElement
    Dim Point As Point3d
    Point.X = 100
    Point.Y = 100
    Set TextElement = CreateTextElement1(Nothing, "my text", Point, Matrix3dIdentity)
        TextElement.Color = 6
        TextElement.TextStyle.Height = 5
        TextElement.TextStyle.Width = 5
    Application.ActiveModelReference.AddElement TextElement
    TextElement.Redraw msdDrawingModeNormal
End Sub

If I change the TextElement.TextStyle.Height or Width value the text will be placed at the same values as before.

best regards

Daniel


Viewing all articles
Browse latest Browse all 4331

Trending Articles



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