Support#

class ansys.pyensight.core.utils.support.Support(interface: ensight_api.ensight | ensight)#

Provides the ensight.utils.support interface.

This class provides a collection of general utility functions and objects that can be used to simplify various issues that come up when using EnSight and PyEnSight.

This class is instantiated as ensight.utils.support in EnSight Python and as Session.ensight.utils.support in PyEnSight. The constructor is passed the interface, which serves as the ensight module for either case. As a result, the methods can be accessed as ensight.utils.support.* in EnSight Python or session.ensight.utils.support.* in PyEnSight.

Parameters:
interface

Entity that provides the ensight namespace. In the case of EnSight Python, the ensight module is passed. In the case of PyEnSight, Session.ensight is passed.

Methods

Support.scoped_name(obj[, native_exceptions])

Allow for the use of with to shorten APIs.