mdlIModelClient IsDirty

Evaluates whether the changes made in the model are saved or not.

Syntax

mdlIModelClient_Handle IsDirty

Application

MotionView Tcl Modify

Description

This command evaluates whether the changes made in the model are saved or not.

Example

hwi OpenStack
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
set temp [mcl IsDirty]
if {$temp == "true" } {
puts "It is Dirty"
} else {
puts "It is Not Dirty"
}
sess1 ReleaseHandle;
hwi CloseStack;

Errors

True is returned if changes have been made to the model, otherwise false is returned.