Simulates a 2D snap, making snapped item current, and returning the snapped position.
Visual Basic |
---|
Public Function Snap2D( _ ByVal x As Double, _ ByVal y As Double, _ ByVal r As Double, _ ByVal bEditOnly As Long, _ ByVal codes As String, _ ByVal filter As String, _ ByVal locus As String _ ) As String |
A | Find smallest area containing position. |
B | Snap to box-text justification point. |
C | Snap to centre of curvature of closest line. |
E | Snap to nearest end of closest line. |
H | Snap to hook position, or origin, of item containing closest linework. |
L | Snap to closest linework. |
M | Snap to middle of closest line segment. |
P | Snap to closest point. |
R | Snap to corner of closest raster pixel that contrasts with its neighbour. |
V | Snap to closest line vertex. |
X | Snap to closest linear intersection. |
A comma-delimited string containing the x, y and z co-ordinates of the snapped position within the current axes. Use SplitPos to get the x, y and z values themselves.
Available: GEO MM ME MD OD OM SISpy
Group:
sis.CreatePropertyFilter("LandParcels", "Exists('ParcelRef$')") sPos = Snap2D (582622, 109632, 0.5, False, "AL", "LandParcels"", "")
Returns a comma-delimited string of the closest position on a LineString item or polygon restricting the search to a 0.5 metre radius. Only items which hold a ParcelRef$ attribute will be considered in the search.
NFound = Snap2D(x, y, 5, 0, "LVP", "", "")
Returns the coordinates of the closest LineString item, point or vertex within 5 metres of the coordinates x, y.
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).