mdlIObject GetChangeStatus
Gets the status if there is a change in Data or Definition.
Syntax
mdlIObject_handle GetChangeStatus query_for
Application
MotionView Tcl Query
Description
This command obtains the status if there is a change in data or definition. For example, if an Assembly is added but an entity is not added under it, then the Data/Definition are intact. If a Point (or any other entity) is added under an Assembly and the coordinates are modified from default, then Data and Definition were modified.
Inputs
- query_for
- There are two valid arguments: DATA or DEFINITION. If DATA is passed, the function will check the status of data. If DEFINITION is passed, the function will check the status of definition.
Example
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 GetObjectHandle obj_handle
obj_handle AddNewAssembly assem_handle assem_0 "\"Assembly 0\"" C:/temp/data_file.mdl C:/temp/def_file.mdl true assem_def_name assem_type;
assem_handle GetChangeStatus DATA
assem_handle GetChangeStatus DEFINITION
assem_handle InterpretEntity temp "Body" b_0 "\"BodyLabel\""
assem_handle InterpretSet SetBodyInertia b_0 100
myModelName Evaluate
assem_handle GetChangeStatus DATA
assem_handle GetChangeStatus DEFINITION
temp ReleaseHandle;
assem_handle ReleaseHandle;
obj_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Errors
Returns CHANGED if the data/definition has been modified, or UNCHANGED if the data/definition has not been modified.