Synopsis
PDX_MSGT gdx_ModelWriteANF(long option, int model, char *file, char *header, MDA_APP_DATA *attrib_app)
Purpose
Converts a GDX model into an ANSYS Neutral File Format
Description
Converts a GDX model gdx data to ANSYS Neutral File Format. This function converts gdx_solid, independent gdx_face and independent gdx_nurb_curve. The GDX model to be processed has to be preprocessed to meet the following criteria. o All geometry needs to be nurbs, except points (1 point polyline). o All nurbs have to be clamped. o All nurbs shall not be closed. o Sense for loop and edge curve has to be true. o Sense for shell needs to be true. o Firsr shell in the solid needs to be outer. o First loop in a face needs to be outer. o Vertices are required. o Edge curve has to point a single nurb curve. o Paramter space curves are not required.
If any of condition above does not meet, this function skippes the problem entities.
Input
option
@d GDX_OVERWRITE If file already exists, overwrite the file. Default is to return an error. @d GDX_ANF_USEATTRID Use the id associated with db_ptr attached in attrib_app. User is fully responsible for id attached are uniq for each entity types. Attributes are valid only on gdx_solid, gdx_face, gdx_edge, gdx_vertex and independent gdx_nurb_curve.
model
Model Id for GDX Model
file
Output File name
header
Optionally specifies header for the ANF file. If it is not required, simply specify NULL. The header goes to the file as is, so user is responsible to follow the ANF syntax. Multiple lines can be specified by concatinating lines by 'n' character. If you simply wants to put the comment, each line should start with "/com,".
attrib_app
Optionally MDA_APP_DATA with GDX_ANF_ATTR to pass the attrib_appute information.
Return
GDX_NOERR or error