mdlIDataMember TestExpression
Tests the evaluation of an expression without re-evaluating the entire model.
Syntax
mdlIDataMember_handle TestExpression
Application
MotionView Tcl Modify
Description
This command tests the evaluation of an expression without re-evaluating the entire model.
Example
hwi OpenStack
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName
myClientName GetModelHandle myModelName
myModelName GetChildHandle point_handle p_conrod_cg0
point_handle GetChildHandle myhandle y
myhandle SetRawExpression "3/0"
myhandle TestExpression
myhandle ReleaseHandle
point_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack
Errors
If successful, the evaluated value of the expression is returned. Otherwise, a description of the error in the expression syntax is returned.