Author Topic: prompt for second Enter or Select an Angle: Specify second point:  (Read 1742 times)

0 Members and 1 Guest are viewing this topic.

jcoon

  • Newt
  • Posts: 157
Hi All,

When I run this sample is see the prompt myPAR = myEd.GetAngle("Enter or Select an Angle: ") to select the first point or enter an angle
but I don't see where the second prompt comes from

The second prompt asks for Specify second point: where does this prompt come from?

I think it's coming from PromptDoubleResult here but I don't know how to find or change the prompt PromptDoubleResult value to a different string to the user.


Thank you
John

<CommandMethod("EnterAngleA")> _
    Public Sub EnterAngleA()
        Dim myDB As DatabaseServices.Database
        Dim myDWG As ApplicationServices.Document
        Dim myEd As EditorInput.Editor
        Dim myPAR As EditorInput.PromptDoubleResult
        myDWG = ApplicationServices.Application.DocumentManager.MdiActiveDocument
        myDB = myDWG.Database
        myEd = myDWG.Editor
        myPAR = myEd.GetAngle("Enter or Select an Angle: ")
        MsgBox(myPAR.Value.ToString)
    End Sub

Bryco

  • Water Moccasin
  • Posts: 1883
Re: prompt for second Enter or Select an Angle: Specify second point:
« Reply #1 on: October 30, 2010, 11:08:30 AM »
It's internal as you need 2 points to define an angle.

jcoon

  • Newt
  • Posts: 157
Re: prompt for second Enter or Select an Angle: Specify second point:
« Reply #2 on: October 31, 2010, 06:12:37 AM »
Bryco,

Thank you. Thats what I thought but I had not idea where is was comming from. I guess the next question is can you change that prompt or whould I have to use another type of prompt to ask the use to select an object? In my case I want to ask the user to select the end of a runway and I want to be able to get the rubber band feature when selecting the two points so I can set the xaxis so In can draw other objects using the polar points from those defined points.

again thank you,

John

Bryco

  • Water Moccasin
  • Posts: 1883
Re: prompt for second Enter or Select an Angle: Specify second point:
« Reply #3 on: October 31, 2010, 10:59:57 AM »
Use getpoint twice, the second time you use basepoint

jcoon

  • Newt
  • Posts: 157
Re: prompt for second Enter or Select an Angle: Specify second point:
« Reply #4 on: November 01, 2010, 06:34:42 AM »
Bryco,

Thanks, I'll give that a try.

john