HMIN_set_unsupportedfile_extension()

Sets the file extension for the unsupported data log file.

Syntax

void HMIN_set_unsupported_extension(char *extension);

Type

HyperMesh hminlib Function

Description

Sets the file extension for the unsupported data log file.

If not specified, the default value of hmx is used.

This command must be used before the HMIN_extratext() command.

Inputs

extension
The file extension without the dot separator.

Example

To set the extension based on an initial condition type:

if (!stricmp(string, "INITIAL_STRESS"))
{                                        
    HMIN_set_unsupportedfile_extension("abc"); //set file with .abc extension 
    HMIN_extratext(0, bufferstring, 0);        //write bufferstring to file with .abc extension
}

if (!stricmp(string, "INITIAL_STRAIN"))
{
    HMIN_set_unsupportedfile_extension("lmn"); //set file with .lmn extension
    HMIN_extratext(0, bufferstring, 0);        //write bufferstring to file with .lmn extension
}

Errors

None.

Version History

12.0