mdlIObject HighlightGraphic

Determines if a graphic under an object is highlighted or not.

Syntax

mdlIObject_handle HighlightGraphichighlight_state

Application

MotionView Tcl Query

Description

This command determines if a graphic under an object is highlighted or not.

Inputs

highlight_state
True
Graphics under an object are highlighted.
False
Graphics under an object are not highlighted.

Example

To use this command there has to be a system defined in the model.

To highlight an object:
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 BeginFlatListFastGet "graphic"
myModelName GetChildHandleByIdx myGraphicHandle 1
myGraphicHandle HighlightGraphic true;
myWindowName Draw 
myGraphicHandle ReleaseHandle;
myModelName ReleaseHandle;
myClientName ReleaseHandle;
myWindowName ReleaseHandle;
myPageName ReleaseHandle;
myProjectName ReleaseHandle;
mySessionName ReleaseHandle;
hwi CloseStack;

Errors

Returns nothing, a white border is drawn around the object to be highlighted.