poISystemCtrl SetLayer
Sets the current layer for the ply system review.
Syntax
sysctrl_handle SetLayer layer_name
Application
HyperView Tcl Modify
Description
This command sets the layer to be applied for a ply system review plot (for example - Ply 1, Ply 10001001, etc.). In the case of an element and material system review plot, this command will be ignored. If the layer name contains spaces. the name must be specified inside double quotes (for example - “Ply 1”). The layer name must exist in the list of available layers. You can get this list from the result control by using the GetLayerList command.
Inputs
- layer_name
- The name of the layer to be set.
Example
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 GetSystemCtrlHandle sysctrl_handle
sysctrl_handle SetLayer ”Ply 3”
hwi CloseStack
Errors
Always returns success even if the layer name does not exist in the available layer list. In the case of an invalid layer, the command will be ignored. If no results were attached, the contour handle is not retrievable, thus this command cannot be called.