SAVSUB
ModelingSAVSUB saves user-data written data to be loaded using RELSUB.
Use
Save user-defined data using the SAVE command:
<Save model_file = "saved_model.xml"/>
Format
- Fortran Calling Syntax
-
SUBROUTINE SAVSUB (IUNIT, IERR)
- C/C++ Calling Syntax
-
void STDCALL SAVSUB (int *iunit, int *errflg)
- Python Calling Syntax
-
Not Supported
- MATLAB Calling Syntax
-
Not Supported
Attributes
- IUNIT
- [integer]
Output
- IERR
- [integer]
Example
For an example of SAVSUB, please refer to [install_path]\hwsolvers\motionsolve\usersub\.
Comments
- MotionSolve calls the SAVSUB subroutine when it encounters the SAVE command.
- IUNIT is automatically generated by MotionSolve. The data written to IUNIT is encoded into the XML file itself, rather than being saved into a separate file. This helps avoid handling extra files.