Hey guys,
I know this is a little bit obsessive but I am just curious;
If I select the lower left (llpnt) and the upper right (urpnt) points of the raster,
I have the results printing to the Immediate Window -->
Take note of the results, which are the correct points
'Return picked points
Debug.Print "The lower left picked points = " & llpnt(0) & ", " & llpnt(1)
Debug.Print "The upper right picked points = " & urpnt(0) & ", " & urpnt(1)
'From Immediate Window
The lower left picked points = -8, 0
The upper right picked points = -0.3500000000012, 11.6033333333333
However, if I use the code that Bob gave me:
Sub Getpoints()
Dim Pnt As Variant
Dim i As Integer
On Error GoTo NoPoint
Do
Pnt = ThisDrawing.Utility.GetPoint(, vbCrLf & "Pnt" & i)
Debug.Print "Pnt" & i & ": "; Pnt(0) & "," & Pnt(1)
i = i + 1
Loop
NoPoint:
If Err.Number Then
Err.Clear
Exit Sub
End If
End Sub
To get my points;
The lower left points (llpnt) are being returned as
-8,-1.34354333214404E-15
Does anybody know why this is happening?
In Bob's code, do we need to have a round function?
In both modules; the same exact method is being used but the results are different?
Mark