Click or drag to resize
CDUrDirection Method
Returns the direction of a line.

Available since Oasis montaj version: 5.0.0
License: Available to anyone with an Oasis Montaj license.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
The direction is calculated from the first and last non-dummy locations in the X and Y reference channels.
Syntax
public static double rDirection(
	CDB oDB1,
	int i2,
	int i3,
	int i4
)

Parameters

oDB1
Type: GeoEngine.Core.GXNetCDB
Database Object
i2
Type: SystemInt32
Line Symbol
i3
Type: SystemInt32
X reference channel [DB_LOCK_READONLY]
i4
Type: SystemInt32
Y reference channel [DB_LOCK_READONLY]

Return Value

Type: Double
direction in degrees azimuth (clockwise relative the +Y direction). GS_R8DM if the line has no data, or if there is a problem. Problems will register errors.
See Also