import_parts_to_avl#

Parts.import_parts_to_avl(request)#

Import a parts list into the Approved Vendor List (AVL).

Available Since: 2026R1

Parameters:
requestImportPartsToAVLRequest

Contains the file path and import mode to use for the AVL parts import.

Returns:
:
SherlockCommonService_pb2.ReturnCode

Return code indicating the result of the AVL parts import.

Return type:

ReturnCode

Examples

>>> from ansys.sherlock.core.types.part_types import ImportPartsToAVLRequest
>>> from ansys.api.sherlock.v0 import SherlockPartsService_pb2
>>> from ansys.sherlock.core.launcher import launch_sherlock
>>>
>>> sherlock = launch_sherlock()
>>> return_code = sherlock.project.import_parts_to_avl(
>>>     ImportPartsToAVLRequest(
>>>         import_file="C:/path/to/AVL_parts_file.xls",
>>>         import_type=SherlockPartsService_pb2.AVLImportType.Update
>>>     )
>>> )