Results 1 to 1 of 1

Thread: change text format of MText

  1. #1
    Member
    Join Date
    2018-04
    Posts
    10
    Login to Give a bone
    0

    Default change text format of MText

    'help needed quick...
    'how to change the format of MText
    'here are lines of code
    ' aim is to change to change the text string bold italic and font is Tahoma
    'thanks





    Sub Ch4_CreateMText()
    Dim mtextObj As AcadMText
    Dim insertPoint(0 To 2) As Double
    Dim width As Double
    Dim textString As String


    insertPoint(0) = 2
    insertPoint(1) = 2
    insertPoint(2) = 0
    width = 4
    textString = "This is a text string for the mtext object."

    ' Create a text Object in model space
    Set mtextObj = ThisDrawing.ModelSpace.AddMText(insertPoint, width, textString)

    ' how to change the text color and format???






    End Sub
    Last edited by yosegmail; 2019-04-23 at 12:47 PM.

Similar Threads

  1. 2014: want to edit mtext and other mtext also change
    By radosak368138 in forum AutoCAD General
    Replies: 1
    Last Post: 2013-04-27, 12:03 PM
  2. Replies: 39
    Last Post: 2007-02-06, 07:08 PM
  3. Replies: 6
    Last Post: 2006-11-08, 10:01 PM
  4. Saving multiple DWG 2007 format files to DWG 2000 format
    By waghorne in forum AutoCAD Customization
    Replies: 3
    Last Post: 2006-09-07, 05:22 PM
  5. Replies: 7
    Last Post: 2006-09-05, 06:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •