Returns the nearest station and offset on an Alignment at given easting, northing and tolerance values.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public void StationOffset( double easting, double northing, double tolerance, ref double station, ref double offset )
Visual Basic
Public Sub StationOffset ( _ easting As Double, _ northing As Double, _ tolerance As Double, _ ByRef station As Double, _ ByRef offset As Double _ )
Visual C++
public: void StationOffset( double easting, double northing, double tolerance, double% station, double% offset )
Parameters
- easting
- Type: System.Double
Specifies the Easting value.
- northing
- Type: System.Double
Specifies the Northing value.
- tolerance
- Type: System.Double
Specifies the tolerance value. This value is in the same coordinate units as the Easting and Northing values, and specifies a range within which the method looks for a point on the Alignment.
- station
- Type: System.Double%
Returns the station value.
- offset
- Type: System.Double%
Returns the offset value.
Remarks
This method returns an error code if the station and offset are out of range using the tolerance given.
Exceptions
Exception | Condition |
---|---|
Autodesk.Civil.PointNotOnEntityException | Thrown when the easting and northing value are out of Alignment range. |