![](../icons/Help.png) | CDUrDirection Method |
Returns the direction of a line.
Available since Oasis montaj version: 5.0
License: Available to anyone.
Namespace: Geosoft.Desktop.GXNetXAssembly: 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.
Syntaxpublic static double rDirection(
CGXNETCore gxNetShared,
CDB db,
int line,
int x_ch,
int y_ch
)
Public Shared Function rDirection (
gxNetShared As CGXNETCore,
db As CDB,
line As Integer,
x_ch As Integer,
y_ch As Integer
) As Double
public:
static double rDirection(
CGXNETCore^ gxNetShared,
CDB^ db,
int line,
int x_ch,
int y_ch
)
static member rDirection :
gxNetShared : CGXNETCore *
db : CDB *
line : int *
x_ch : int *
y_ch : int -> float
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