poITracingCtrl SetSimSteps
Sets the entity color.
Syntax
poITracingCtrl_handle SetSimSteps steplist
Application
HyperWorks Tcl Modify
Description
When the tracing mode is LIST, this command specifies the simulation steps that are traced. The list must specify valid indexes in the current load case.
Inputs
- steplist
- A list of simulation step indexes to trace.
Context
Example
hwi OpenStack
if {[catch {
hwi GetSessionHandle session_handle
hwi GetActiveClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetTracingCtrlHandle tc_handle
tc_handle AddEntity node "Node 251"
tc_handle AddEntity node "Node 197"
tc_handle SetEntityColor node "Node 197" "255 0 0";
tc_handle SetMode list;
tc_handle SetSimSteps "0 1 2 3 4 5";
set mode [tc_handle GetMode];
set sList [tc_handle GetSimStepList];
set traceColor [tc_handle GetEntityColor node "Node 251"];
set traceColor2 [tc_handle GetEntityColor node "Node 197"];
} result]} {
global errorInfo;
puts stderr $result;
puts "[session_handle GetError]";
puts stderr "*** Tcl TRACE ***";
puts stderr $errorInfo;
} else {
puts "********";
puts "Mode = $mode";
puts "Steps = $sList";
puts "********";
puts "No errors.";
puts "Warnings: ";
puts " [session_handle GetError]";
}
hwi CloseStack
Console Output:
********
Mode = list
Steps = 0 1 2 3 4 5
********
No errors.
Warnings:
Errors
Returns HW_InvalidHandle if the tracing control handle is invalid.