vidIVideo SetUseUnitsForPlot
Sets the flag determining if the unit system, if defined, should be used in creating plots for measures and markers.
Syntax
vidIVideo_handle SetUseUnitsForPlot true/false
Application
HyperWorks Tcl Modify
Description
This command determines if plots of measures and markers will be created using the unit system defined using the master measure, if available.
Inputs
- true/false
-
- True
- To use units on plots.
- False
- To use pixels.
Example
hwi OpenStack;
hwi GetSessionHandle sess1;
sess1 GetProjectHandle proj;
proj GetPageHandle page1;
page1 SetLayout 2
page1 GetWindowHandle win1 1;
page1 GetWindowHandle win2 2;
win2 SetClientType plot
win1 GetClientHandle vid
vid AddMovie "c:/video/Marker/data/barrier0411.amf"
vid GetMovieHandle movie 1;
movie SetMasterMeasurePoints 22 100 55 333;
movie SetMasterMeasureLength 500;
vid GetMeasureHandle master 1;
master SetUnits “mm”;
vid SetUseUnitsForPlot true;
hwi CloseStack;
Errors
Success (0) or an error message is returned.
Keywords
- HyperWorks
- Tcl
- Video
- Modify