Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello every one
Norman, Ed big thumbs up to you guys for yer previous help
I was wondering how is it possible to set multi text heights in a single MTEXT object?
This is the code I got:
Dim gn As AcadMText
Dim gx As String
Dim sx As String
Dim fx as string
Dim width As Integer
width = 23812
Dim Insp(2) As Double
Insp(0) = 38271
Insp(1) = 4460
sx = "\B\LThis is\b \l an example"
gx = vbNewLine & vbNewLine & "Hello \Bworld"
fx = sx & gx
Set gn = ThisDrawing.ModelSpace.AddMText(Insp, width, fx)
gn.Layer = "details"
gn.StyleName = "nsd-details txt"
gn.Height = 317
Problem is, I want sx text height to be 100
and gx to be 317
any ideas Norman and Ed?
PS: \B and \L makes the text Bold and Underlined. really cool
Solved! Go to Solution.