poIMeasure AddStaticXYCurveToPlot
Adds a static curve for all entities in the current measure group, using the specified y-axis, to the given plot client.
Syntax
poIMeasure_handle AddStaticXYCurveToPlot x_axis y_axis plotwin
Application
HyperView Tcl Modify
Description
This command adds a static curve for all entity IDs in the current measure group, using the specified y-axis, to the given plot client.
Inputs
- x_axis
- The attributes of the group of measured entities. Options include: entity-id, entity-x, entity-y, entity-z, and distance.
- y_axis
- Measure option mapped to the plot's y-axis. Options include: mag, x_comp, y_comp, z_comp, and scalar.
- plotwin
- Plot window handle to which to add a curve.
Example
hwi OpenStack;
hwi GetSessionHandle sess;
sess GetProjectHandle proj;
set MODEL_FILE "<insert model path>";
set RESULT_FILE "<insert result path>";
set activePageID [proj GetActivePage];
proj GetPageHandle activePage $activePageID;
activePage SetLayout 2;
activePage GetWindowHandle win1 1;
activePage GetWindowHandle win2 2;
win1 SetClientType "animation";
win2 SetClientType "plot";
win1 GetClientHandle postClient;
win2 GetClientHandle plotClient;
postClient AddModel $MODEL_FILE;
puts "Returned from add model"
set activeModelID [postClient GetActiveModel];
puts "activeModelID = $activeModelID";
postClient GetModelHandle activeModel $activeModelID;
activeModel AddResult $RESULT_FILE;
activePage StartAnimation 1;
set measureID [postClient AddMeasure];
puts "measureID = $measureID";
postClient GetMeasureHandle msr $measureID;
msr SetType "position";
msr AddNode "1 24697";
msr AddNode "1 24701";
msr AddNode "1 24709";
msr AddStaticXYCurveToPlot "entity-id" "x_comp" win2;
Errors
Returns a non-zero value.