帮助文件里都有,多点看。 - Option ExplicitSub Example_AddMtext()
- ' This example creates an MText object in model space.
-
- Dim MTextObj As AcadMText
- Dim corner(0 To 2) As Double
- Dim width As Double
- Dim text As String
- corner(0) = 0#: corner(1) = 10#: corner(2) = 0#
- width = 10
- text = "我终于能够写入了" & vbCrLf & "我终于能够写入了" ' Creates the mtext Object
- Set MTextObj = ThisDrawing.ModelSpace.AddMText(corner, width, text)
- ZoomAll
-
- End Sub
|