HyperWorks Solvers

SAVSUB

SAVSUB

Previous topic Next topic No expanding text in this topic  

SAVSUB

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Subroutine Type

Modeling

Definition

SAVSUB 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"/>

Calling Syntax

Fortran

SUBROUTINE SAVSUB (IUNIT, IERR)

 

C

void STDCALL SAVSUB (int *iunit, int *errflg)

 

Python

Not Supported

 

MATLAB

Not Supported

Input Arguments

[integer] IUNIT

Specifies the file that will be written using SAVSUB.

Output Values

[integer] IERR

The error flag, which is set to true in case of an error writing user-data.  The error message is sent both to the screen and the message file.

Example

For an example of SAVSUB, please refer to [install_path]\hwsolvers\motionsolve\usersub\.

Comments

1.MotionSolve calls the SAVSUB subroutine when it encounters the SAVE command.
2.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.

See Also:

Modeling Subroutines