poIVectorCtrl RenamePlotStyle

Renames an existing/old plot style with a new name.

Syntax

poIVectorCtrl_handle RenamePlotStyleold_style_name new_style_name

Application

HyperView Tcl Modify

Description

This command renames an existing/old plot style with a new name.
Note: The new plot style name must be unique.

Inputs

old_style_name
The name of the old/existing plot style.
new_style_name
The new name to be given to the old/existing plot style.

Example

To rename a vector plot style:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetVectorCtrlHandle vector_handle
vector_handle RenamePlotStyle old_style_name new_style_name
hwi CloseStack

Errors

Returns an error if the vector controller handle is invalid, if the old plot style name could not be found, or if the new view name is not unique.