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

[CONNECT VBA] Text color

$
0
0

I am unable to set override text color in VBA. Same code works in v8i but not in CONNECT. Text is placed white(maybe related to defect 278792?)

   Dim teP As TextElement
   Dim lvP As Level
   Dim txsp As TextStyle
   Dim ls As LineStyle

    Set teP = CreateTextElement1(Nothing, " ", Point3dZero, Matrix3dIdentity)

Set txsp = ActiveDesignFile.TextStyles.Find("Tahoma_03_LT")
txsp.UsesColor = False
Set ls = ActiveDesignFile.LineStyles("0")

Set lvP = ActiveDesignFile.Levels("Default)
teP.TextStyle = txsp
teP.Level = lvP
      teP.Color = 4
      teP.LineWeight = 0
      teP.LineStyle = ls
      teP.TextStyle = txsp


Result: TeP.color is still 0 and not 4


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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