SET_ATTRIBUTE

Utility/Data Access SubroutineThis subroutine modifies the attribute accessed by the last MODFNC or MODSET call.

Use

This subroutine must be preceded by MODFNC or MODSET calls. It modifies the same Element/ID referenced by the preceding MODFNC or MODSET until another MODFNC or MODSET with a different Element ID is called. You can have multiple SET_ATTRIBUTE calls after a preceding MODFNC or MODSET call.

Format

Fortran Calling Syntax
SUBROUTINE SET_ATTRIBUTE(INPUT, INFO)
C/C++ Calling Syntax
c_set_attribute(input, info)
Python Calling Syntax
info = py_set_attribute(input)
MATLAB Calling Syntax
info = m_set_attribute(input)

Attributes

INPUT
[string]
The value of the attribute, cast as character string.
INFO
[integer]
The information about the call status or return value type. A negative value indicates failure in modifying the model data.
0
Attribute successfully modified.
-1
Element name unrecognized or unsupported.
-2
ID not found or invalid.
-3
Attribute name unrecognized or unsupported.
-4
Attribute is a non-modifiable constant character string.