clear_metrology_model — Delete a metrology model and free the allocated memory.
clear_metrology_model( : : MetrologyHandle : )
clear_metrology_model deletes a metrology model that was created by create_metrology_model, copy_metrology_model, read_metrology_model, or deserialize_metrology_model (see create_metrology_model for the basic principle of 2D metrology). Note that by deleting the model also the including metrology objects are deleted. All memory used by the metrology model and the metrology objects is freed. The handle of the model is passed in MetrologyHandle. After the operator call, the metrology model is invalid.
A metrology model 'MetrologyHandle' cannot be shared between two or more user's threads. Different metrology models can be used independently and safely in different threads.
Handle of the metrology model.
The operator clear_metrology_model returns the value 2 (H_MSG_TRUE) if a valid handle was passed and the referred metrology model can be freed correctly. Otherwise, an exception will be raised.