save_harmonic_profile#

Lifecycle.save_harmonic_profile(request)#

Save a harmonic life cycle event profile to a .dat or .csv file.

Available Since: 2026R1

Parameters:
requestSaveHarmonicProfileRequest

Request object containing the information needed to save a harmonic profile.

Returns:
:
SherlockCommonService_pb2.ReturnCode

Status code of the response. 0 for success.

Return type:

ReturnCode

Examples

>>> from ansys.sherlock.core.types.lifecycle_types import SaveHarmonicProfileRequest
>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> sherlock = launch_sherlock()
>>> response = sherlock.lifecycle.save_harmonic_profile(
>>>     SaveHarmonicProfileRequest(
>>>         project="MyProject",
>>>         phase_name="DurabilityPhase",
>>>         event_name="Harmonic_100Hz",
>>>         triaxial_axis="x",
>>>         file_path="/tmp/Harmonic_100Hz.csv",
>>>     )
>>> )
>>> assert response.value == 0