save_shock_pulse_profile#
- Lifecycle.save_shock_pulse_profile(request)#
Save a shock pulse life cycle event profile to a .dat or .csv file.
Available Since: 2026R1
- Parameters:
- request
SaveShockPulseProfileRequest
Request object containing the information needed to save a shock pulse profile.
- request
- Returns:
- :
SherlockCommonService_pb2.ReturnCode
Status code of the response. 0 for success.
- Return type:
ReturnCode
Examples
>>> from ansys.sherlock.core.types.lifecycle_types import SaveShockPulseProfileRequest >>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> response = sherlock.lifecycle.save_shock_pulse_profile( >>> SaveShockPulseProfileRequest( >>> project="MyProject", >>> phase_name="ShockPhase", >>> event_name="Pulse_200g", >>> file_path="/tmp/Pulse_200g.csv", >>> ) >>> ) >>> assert response.value == 0