clear_all_metrology_models — Delete all metrology models and free the allocated memory.
clear_all_metrology_models( : : : )
clear_all_metrology_models deletes all metrology models that were 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). All memory used by the models is freed. After the operator call, all metrology handles are invalid.
clear_all_metrology_models exists solely for the purpose of implementing the “reset program” functionality in HDevelop. clear_all_metrology_models must not be used in any application.
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.
The operator clear_all_metrology_models returns the value 2 (H_MSG_TRUE) if all metrology models were freed correctly. Otherwise, an exception will be raised.