poITracingCtrl AddSimStepToList

Adds a simulation step index to the list of simulation steps that are traced.

Syntax

poITracingCtrl_handle AddSimStepToList stepIndex

Application

HyperView Tcl Modify

Description

When the tracing mode is LIST, this command will add the index of a simulation step from the list of simulation steps that are traced. The index must be valid for the current load case.

Inputs

stepIndex
A valid simulation step index.

Example

To set and return the list of simulation steps to trace:
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";
    tc_handle AddSimStepToList 6;
    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 CloseStac
Console Output:

********
Mode = list
Steps = 0 1 2 3 4 5 6
********
No errors.
Warnings:

Errors

Returns HW_InvalidHandle if the tracing control handle is invalid.