2011

Table Of Contents
Action Types
The following action types are available in Navisworks:
Play Animation - action specifies which animation to play back when a script is triggered.
Stop Animation - action specifies which currently playing animation to stop when a script is triggered.
Show Viewpoint - action specifies which viewpoint to use when a script is triggered.
Pause - enables you to stop the script for a specified amount of time before the next action is run.
Send Message - action writes a message in a text file when a script is triggered.
Set Variable - action assigns, increases or decreases a variable value when a script is triggered.
Store Property -action stores an object property in a variable when a script is triggered.
This can be useful if you need to trigger events based on embedded object properties or live data in a linked
database.
Load Model - action opens a specified file when a script is triggered.
You may find it useful if you want to present a selection of animated scenes contained in a range of different
model files.
To add an action
1 If the Scripter window is not already open, click Animation tab Script panel Scripter
.
2 Select the desired script in the tree view.
3 Click the desired action icon at the bottom of the Actions view. For example, click to add a Play Animation
action.
4 Review the action properties in the Properties view, and adjust them as necessary.
To test an action
1 If the Scripter window is not already open, click Animation tab Script panel Scripter
.
2 Select the desired script in the tree view.
3 Right-click the Actions view, and click Test Action on the shortcut menu.
Navisworks executes the selected action.
To delete an action
1 If the Scripter window is not already open, click Animation tab Script panel Scripter
.
2 Select the desired script in the tree view.
3 Right-click the action you want to delete in the Actions view, and click Delete Action.
Enable Scripting
To enable animation scripts in your file, you need to click Animation tab Script panel Enable Scripts
.
You can now interact with your model.
NOTE When the scripts are enabled, you cant create or edit scripts in the Scripter window. To disable scripting, click
Animation tab Script panel Enable Scripts
again.
348 | Chapter 13 Animate Objects