This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IM > IMSegmentation2 Interface > IMSegmentation2.UpdateMsByDistance Method (ArcObjects .NET 10.4 SDK) |
Updates Ms along the shortest path between the specified endpoints. The interpolation ratio is determined by the input ms and euclidean distance along that path. The update method is given as a combination of esriGeometryUpdateMEnum values.
[Visual Basic .NET] Public Sub UpdateMsByDistance ( _ ByVal fromPart As Integer, _ ByVal FromPoint As Integer, _ ByVal toPart As Integer, _ ByVal ToPoint As Integer, _ ByVal fromM As Double, _ ByVal toM As Double, _ ByVal updateHow As Integer, _ ByVal ignoreGaps As Boolean _ )
[C#] public void UpdateMsByDistance ( int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow, bool ignoreGaps );
[C++]
HRESULT UpdateMsByDistance(
long fromPart,
long FromPoint,
long toPart,
long ToPoint,
double fromM,
double toM,
long updateHow,
VARIANT_BOOL ignoreGaps
);
[C++]
Parameters fromPart fromPart is a parameter of type long FromPoint FromPoint is a parameter of type long toPart toPart is a parameter of type long ToPoint ToPoint is a parameter of type long fromM fromM is a parameter of type double toM toM is a parameter of type double updateHow updateHow is a parameter of type long ignoreGaps ignoreGaps is a parameter of type VARIANT_BOOL
The updateHow argument is given as a combination of esriGeometryUpdateMEnum values. When combining multiple values, the bitwise Or operator should always be used. This assures an error-free combination of the values (as long as the attempted combination is valid). Do not use the addition operator (+) to combine the values as unexpected results may occur.
For example, to interpolate between the input points and to extrapolate before and after the input points, you would use 7, which equates to: esriGeometryInterpolate OR esriGeometryExtrapolateBefore OR esriGeometryExtrapolateAfter
esriGeometryInterpolate=0001 (1)
esriGeometryExtrapolateBefore=0010 (2)
esriGeometryExtrapolateAfter=0100 (4)
0001
0010
0100
----
0111
IMSegmentation2 Interface | IMSegmentation2.UpdateMsByMs Method