2011

Table Of Contents
Navisworks checks the event conditions in your script, and reports back any detected errors.
To delete an event
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 event you want to delete in the Events view, and click Delete Event.
Work with Actions
An action is an activity, such as playing or stopping an animation, showing a viewpoint and so on, which is
carried out when a script is triggered by an event or a combination of events.
Your script can have more than one action in it. Actions are executed one after another, so it is important to get
the action sequence right.
NOTE Navisworks does not wait for the current action to be completed before moving on to the next action.
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.
348 | Chapter 13 Animate Objects