Synopsis

PDX_MSGT gdx_ConvertCurveToTrimCurve(long option, MDA_PTR gdx_db_ptr, int model, void *gdx_trim_curve)

Purpose

Convert a GDX Curve entity to a GDX Trim Curve entity

Description

Given a GDX Curve entity that may contain trim parameters, create a GDX Trim curve with the trim parameters that references the GDX Curve entity.

Input

option

GDX_COMMIT

Commit the GDX Trim curve definition to the database

GDX_USECURVE

Use the original GDX curve entity as the Trim curve entity if the original GDX Curve model is the same as model

gdx_db_ptr

The GDX curve entity database pointer

model

The model to create the GDX Trim curve entity in

Output

gdx_trim_curve

The GDX Trim curve entity structure pointer or database pointer

Tolerances

      MODEL_SPACE_PNT_TOL
      .fi

Return

      GDX_NOERR
      Low level error return
      .fi