# Synopsis

PDX_MSGT gdx_ReverseCurve(long option, MDA_PTR gdx_curve_ptr)

# Purpose

Reverse a GDX curve entity

# Description

Reverses a GDX curve entity such that the start point becomes the endpoint and vice versa. gdx_curve_ptr may reference any of the following GDX curve types:

.nf GDX_ARC GDX_COMP_CURVE GDX_CONIC GDX_POLYLINE GDX_SPLINE_CURVE GDX_NURB_CURVE GDX_OFFSET_CURVE GDX_TRIM_CURVE .fi .IP Note: 7 This function modifies the entity referenced by gdx_curve_ptr. If an error occurs while reversing the curve, it will be unlocked with MDA_INVALIDATE to restore the entity to its original state. Because of the way MDA_INVALIDATE works, the original entity will not be restored if @gdx_curve_ptr is locked in memory. This implies that the application should not have gdx_curve_ptr locked when calling this function so that if an error should occur, the original entity will be used next the time it is locked. .LP

# Input

## option

Options (not used)

## gdx_curve_ptr

The valid GDX entity database pointer

# Return

          GDX_NOERR
          GDX_ENTITYNOTCURVE
          Low level error return
          .fi