+ status_t ret;
+
+#if MESHGEMS_VERSION_HEX > MESHGEMS_215
+ // unlock Hexa license only once
+ std::string SPATIAL_LICENSE = SMESHUtils_MGLicenseKeyGen::GetKey(errorTxt);
+ ret = meshgems_hexa_unlock_product(SPATIAL_LICENSE.c_str());
+ if STATUS_IS_ERROR( ret )
+ {
+ AddError( SMESH_Comment( "Problem with SPATIAL_LICENSE to unlock Hexa: ") << errorTxt );
+ return false;
+ }
+ else
+ MESSAGE("SPATIAL_LICENSE unlock Hexa: " << ret);
+#else