import_parts_list#
- Parts.import_parts_list(project, cca_name, import_file, import_as_user_src)#
Import a parts list for a CCA.
- Parameters:
project (str) – Name of the Sherlock project.
cca_name (str) – Name of the CCA.
import_file (str) – Full path to the CSV file with the parts list.
import_as_user_src (bool) – Whether to set the data source of the properties to
"User"
. Otherwise, the data source is set to the name of the CSV file.
- Returns:
Status code of the response. 0 for success.
- Return type:
int
Examples
>>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> sherlock.project.import_odb_archive( "ODB++ Tutorial.tgz", True, True, True, True, project="Test", cca_name="Card", ) >>> sherlock.parts.import_parts_list( "Test", "Card", "Parts List.csv", False, )