state = pwGetModelState(model) Returns the state of a model core as a number. If the model is not changed in key properties, the state will be the same and e.g. re-compilation is not required.