- User's Guide
- Working with Action Scripts
- Loading Action Scripts From a Node Model
Loading Action Scripts From a Node Model
You can load an Action Script from the model of an existing node. This type of script allows you to create a new node, insert it into multiple hierarchies, and define property values based on the relationships and attributes of the existing node.
To load an action script from a node model:
- On the Home page, select Script.
- From Source Type select Node Model.
- On the Source tab, do the following:
- Select the source version.
- Do one of the following to select a node:
-
Click
select a node, and click OK.
-
Type a node name in Node To Model and click Fetch.
Note:
Fetch also retrieves property values for the selected node.
-
- Use the check boxes to select instances of nodes to include in the Action Script.
- On the Properties tab, from Copy Properties, select the properties to be copied from the node model.
-
None––No properties are copied.
-
Overridden––Only overridden property values are copied.
-
Selected––Only the properties you select are copied.
Note:
For Selected, click
to display a property selector from which to select properties.
-
All––all properties are copied.
-
- Do the following:
-
Select the Global Properties tab to view the Global property values that will be included in the Action Script based on your selection in Step 4.
-
Select the Local Properties tab and select a hierarchy to view the local property values that will be included from each hierarchy based on your selection in Step 4. Make changes as necessary.
-
- On the Target tab, do the following:
-
Select the target version for the new node.
-
Enter a name for the new node.
-
Enter a description for the new node.
-
- Click Load.
- When the load completes, review the script actions and parameter values. You can:
-
Click
to modify a row.
-
Select Script, then Substitute Versions to change a version. Select the version to be replaced and the version to replace it with and click OK.
-
Click a column header to sort rows alphabetically.
-
Click
to filter one or more columns.
-
- Select the check box in the Process column next to each row to be run.
Note:
From the Script menu, use Select All to process all actions. You can select a subset of actions from a script and only process those actions.
- Click
to run the Action Script.
The results of each script action are displayed in the Status and Result Value columns. The script and the results can be saved to a file using the Download option on the Script menu.