load_life_cycle#

Lifecycle.load_life_cycle(request)#

Load a life cycle from a .dfr-lc or .dat file to a project.

Available Since: 2027R1

Parameters:
requestLoadLifeCycleRequest

Request object containing project and file path.

Returns:
:
SherlockCommonService_pb2.ReturnCode

Status code of the response. 0 for success.

Return type:

ReturnCode

Examples

>>> from ansys.sherlock.core.types.lifecycle_types import LoadLifeCycleRequest
>>> from ansys.sherlock.core import launcher
>>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua")
>>> response = sherlock.lifecycle.load_life_cycle(
>>>     LoadLifeCycleRequest(
>>>         project="Tutorial Project",
>>>         file_path="/path/to/lifecycle_file.dfr-lc"
>>>     )
>>> )
>>> assert response.value == 0