# Synopsis

PDX_MSGT gdx_LoopGetDirection(long option, MDA_PTR gdx_surf_ptr, MDA_PTR gdx_loop_ptr, int *direction)

# Purpose

Get the direction of a GDX loop on a surface

# Description

This function determines the direction of a GDX loop on a surface. The direction can only be determined if the loop has parameter space loops and is closed in parm space.

# Input

## option

(not used).

## gdx_surf_ptr

Database pointer of surface which loop is on.

## gdx_loop_ptr

Database pointer of Loop.

# Output

## direction

Direction of the GDX loop. GDX_LOOP_COUNTER_CLOCKWISE GDX_LOOP_CLOCKWISE GDX_LOOP_OPEN_PARM GDX_LOOP_UNKNOWN

# Return

          Low level error return
          .fi