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

Available since Oasis montaj version: 5.0
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.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(
	CGXNETCore gxNetShared,
	CDB db,
	int line,
	int x_ch,
	int y_ch
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
db
Type: GeoEngine.Core.GXNetXCDB
Database Object
line
Type: SystemInt32
Line Symbol
x_ch
Type: SystemInt32
X reference channel [<define>DB_LOCK_READONLY</define>]
y_ch
Type: SystemInt32
Y reference channel [<define>DB_LOCK_READONLY</define>]

Return Value

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