HyperWorks Desktop

ani

ani

Previous topic Next topic No expanding text in this topic  

ani

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

Controls the animation of the loaded results in the current page.

Syntax

ani <argument>;

Arguments

Name

Data Type

Description

 

for

string

Turns the animation on in the forward direction.

 

bac

string

Turns the animation on in the backward direction.

 

next

string

If the model is not animating, the current simulation is set to the next simulation. If the model is animating, then the effect of this command is not visible. If this command is given when the model is at the last step, the message "Last Simulation reached" is displayed.

 

prev

string

If the model is not animating, the current simulation is set to the previous simulation. If the model is animating, then the effect of this command is not visible. If this command is given when the model is at the first step, the message "First Simulation reached" is displayed.

 

first

string

If the model is not animating, the current simulation is set to the first simulation. If the model is animating, the effect is not visible.

 

last

string

If the model is not animating, the current simulation is set to the last simulation. If the model is animating, the effect is not visible.

 

fab

string

The animation is turned on in bouncing mode.

 

off

string

The animation is turned off.

 

step <step no.>

string, int

The current simulation step is set to the specified <step no.>. If the step number is not in the range of total number of simulation steps, then an error message is displayed. The step number is from 1 to n (n being the last simulation step).

Returns

Nothing.

Errors

No error codes.

If the results are not loaded in the active window of the application, then the message "Result File not loaded" is displayed on the TK Console. If an argument other than the ones mentioned above or no argument is supplied to the ani command, then the correct usage is displayed in the TK Console.

Example

The following example turns the animation on in the forward direction. It will work only if the results are loaded in the active window of the application.

ani for;

Comments

This command works only if results are loaded. If they are not loaded, then the message "Result File not loaded" is displayed.

 

See Also:

Command Window - HyperView