MText - decimal style

MText - decimal style

roseanna
Participant Participant
300 Views
0 Replies
Message 1 of 1

MText - decimal style

roseanna
Participant
Participant

I've created an MText object hoping to be able to use the Decimal Tabs.  I have been searching all morning for the help with Autocad.net (vb) to set these codes. What I need to add into this is the ability to insure that the decimal style is set to 'period' not 'comma'.  I'm using Autocad 2015 with VS 2010.

 

My current mtext object looks like this:

 

Dim acTestMtext As MText = New MText

acTestMtext.Contents = "\pxtD,12,D,18;" & _

"abc" & vbTab & "123.45" & vbTab & "123.45" & vbCrLf &

"def" & vbTab & "1.4534" & vbTab & "12.4"

acTestMtext.Width = 4.0

acTestMtext.Location = New Point3d(0.5, 1, 0)

acTestMtext.TextHeight = txtHt

acPaperSpace.AppendEntity(acTestMtext) : acTrans.AddNewlyCreatedDBObject(acTestMtext, True)

 

thanks

 

 

0 Likes
301 Views
0 Replies
Replies (0)