Message 1 of 2
Problem by PromptResult in combi of getDistance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
this post is in connection to https://forums.autodesk.com/t5/net/getdistance-in-combination-of-using-a-rubber-band/td-p/11553064.
my code is currently
Dim Radius_1 As Double = 10.0
Dim pDistOpts_1 As PromptDistanceOptions = New PromptDistanceOptions(vbLf &
String.Format("Radius 1 <{0}>: ", Radius_1.ToString("0.000"))) With {.AllowNone = True,
.BasePoint = Point_1,
.UseBasePoint = True,
.UseDashedLine = True,
.Only2d = True}
Dim pStrRes_1 As PromptResult = AcEditor.GetDistance(pDistOpts_1)
Select Case pStrRes_1.Status
Case PromptStatus.OK ' der erfasste Abstand
'Radius_1 = pStrRes_1.
Dim Value_1 As String = pStrRes_1.StringResult
If IsNumeric(Value_1) = True Then
Radius_1 = Math.Abs(CDbl(Value_1))
Else
_AcLog.Write("keine gültige nummerische Eingabe für Punkt 1!")
Exit Sub
End If
Case PromptStatus.None ' hier wird die Vorgabe übernommen
Case Else 'bevor es zu einem Fehler kommt
Exit Sub
End Select
till line 11 everything is ok.
but then when i want to access to the result pStrRes_1.StringResult will be nothing and in context-menu there is a property value.
but when i code in ide pStrRes_1.value i get the message "value is not a member of PromptResult" !
i did not understand....
regards Jan