Synopsis
PDX_MSGT gcr_UserAttribute2(long option, MDA_PTR orig_db_ptr, char *attribute_name, int attribute_type, char *attribute_description, MDA_COUNT n_fields, char *field_names[], char field_types[], GDX_USER_ATTRIBUTE_UNION field_values[], MDA_COUNT n_attached, MDA_PTR attached_ptrs[], int gdx_model, MDA_PTR *gdx_user_attribute_ptr)
Purpose
Create GDX user attribute.
Description
Create GDX user attribute with the specified information.
Input
option
Not used
orig_db_ptr
Original database pointer or MDA_NULL_PTR
attribute_name
Name of the user attribute to create
attribute_type
Type of attribute (see gdx_structs.h for enumeration values)
attribute_description
Description of attribute
n_fields
Number of fields in this user attribute
field_names
Array of field names
field_types
Array of field types (GDX_USER_ATTRIBUTE_INTEGER_FIELD, GDX_USER_ATTRIBUTE_REAL_FIELD, GDX_USER_ATTRIBUTE_STRING_FIELD, GDX_USER_ATTRIBUTE_POINTER_FIELD, GDX_USER_ATTRIBUTE_ARRAY_FIELD)
field_values
Array of field values
n_attached
Number of entities to attach to this user attribute
attached_ptrs
Array of entities to attach
gdx_model
GDX model to create user attribute
Output
gdx_user_attribute_ptr
Database pointer of created user attribute
Return
GCR_NOERR
.fi