poIPost GetLayerList
Gets a list of shell layer labels from all the models loaded.
Syntax
post_handle GetLayerList datatype context filter_id
Application
HyperView Tcl Query
Description
This command returns a list of shell layer labels from all the models loaded. Returns a list of shell layer labels if the specified data type exists, otherwise an empty list. Returns raw layers if the context is vector, tensor, or empty.
Inputs
- datatype
- The label of the data type.
- context
- A string indicating the context of the request (scalar, tensor, vector, iso).
- filter_id
- The layer filter ID used to filter the layers that are returned.
Example
To get the layer list for the Stress vector data type:
hwi OpenStack
hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page [proj GetActivePage]
page GetWindowHandle win [page GetActiveWindow]
win GetClientHandle client
client GetLayerList Stress vector
hwi CloseStack
Errors
Returns error code and sets error condition on the session handle. See session_handle GetError.
Related Topics
See the Upfront Data Loader APIs topic for additional information regarding the various Tcl/Tk commands that have been added for this workflow.