HyperWorks Solvers

RELSUB

RELSUB

Previous topic Next topic No expanding text in this topic  

RELSUB

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

Subroutine Type

Modeling

Definition

Used to reload user data written using SAVSUB.

Use

Reload user-defined data using the Load_Model command.

 

<Load_Model

    model_file    = "save1.xml"

    result_file   = "output.mrf"

    anima_file    = "output.h3d"/>

Calling Syntax

Fortran

SUBROUTINE RELSUB (IUNIT, IERR)

 

C

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

 

Python

Not Supported

 

MATLAB

Not Supported

Input Arguments

[integer] IUNIT

Specifies the file that will be opened by RELSUB.

Output Values

[integer] IERR

The error flag that is set to true in case of an error reading user data.  The error message is sent both to the screen and to the message file.

Example

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

Comments

1.MotionSolve calls the RELSUB subroutine when it encounters the Load_Model 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