diff --git a/pyproject.toml b/pyproject.toml index 4e71b4de436..8160ec3d161 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ classifiers = [ dependencies = [ "importlib-metadata>=4.0; python_version<='3.8'", - "ansys-api-pyensight==0.3.6", + "ansys-api-pyensight==0.3.7", "requests>=2.28.2", "docker>=6.1.0", "urllib3<2", diff --git a/src/ansys/pyensight/core/utils/omniverse.py b/src/ansys/pyensight/core/utils/omniverse.py index 5cec1a22365..19d9e1bb88a 100644 --- a/src/ansys/pyensight/core/utils/omniverse.py +++ b/src/ansys/pyensight/core/utils/omniverse.py @@ -1,6 +1,7 @@ import os import subprocess import sys +from types import ModuleType from typing import TYPE_CHECKING, Optional, Union import psutil @@ -121,6 +122,8 @@ def create_connection( the connection between EnSight and Omniverse. """ + if not isinstance(self._ensight, ModuleType): + self._ensight._session.ensight_version_check("2023 R2") self._check_modules() if self._is_running_omniverse(): raise RuntimeError("An Omniverse server connection is already active.") @@ -191,6 +194,8 @@ def update(self) -> None: Push the current EnSight scene to the current Omniverse connection. """ + if not isinstance(self._ensight, ModuleType): + self._ensight._session.ensight_version_check("2023 R2") self._check_modules() if not self._is_running_omniverse(): raise RuntimeError("No Omniverse server connection is currently active.")