Article | 41023344 |
Type | HowTo |
Product | Engine |
Version | 4.1.6.1028 |
Date Added | 12/19/2003 |
Submitted by | Takis |
Keywords |
The VDPro1_CoordMouseMove returns the coordinates in DCS (Display Coordinates System)
The BoundingBox always returns values in WorldCS.
So the best way is to take the coordinates in VDPro1_CoordMouseMove with cursorpos (returns the coord. in CurrentCS) and convert them to WCS like below.
Private Sub VDPro1_CoordMouseMove(ByVal Xpos As Double, ByVal Ypos As Double) Dim aTemp As Variant aTemp = VDPro1.CursorPos VDPro1.Utility.CCSToWorld (aTemp) ' Code here for : Check the atemp with the Polyline's bounding box End Sub