Message 1 of 2
Specifying text size when inserting text with GetPoint ()

Not applicable
01-12-2002
08:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I insert text with the following code to insert text using the GetPoint() command:
Dim textObj As AcadText
Dim textString As String
Dim returnPnt1 As Variant
Dim height As Double
' Return a point using a prompt
returnPnt1 = ThisDrawing.Utility.GetPoint(, "Enter a point: ")
' Define the text object
textString = "Place object here"
height = 50
' Create the text object in model space
Set textObj = ThisDrawing.ModelSpace.AddText(textString, returnPnt1, height)
That works well but I'm trying to get the user to specify the text height in the command box not write it in the code as I have done above.
All help is appreciated.
Dim textObj As AcadText
Dim textString As String
Dim returnPnt1 As Variant
Dim height As Double
' Return a point using a prompt
returnPnt1 = ThisDrawing.Utility.GetPoint(, "Enter a point: ")
' Define the text object
textString = "Place object here"
height = 50
' Create the text object in model space
Set textObj = ThisDrawing.ModelSpace.AddText(textString, returnPnt1, height)
That works well but I'm trying to get the user to specify the text height in the command box not write it in the code as I have done above.
All help is appreciated.