Skip to main content

Prime Mesh Python client library 2026 R1 SP01

download_test_examples

Last update: 29.04.2026

ansys.meshing.prime.examples.download_test_examples(destination=None, force=False)

Download the example files necessary for unit testing.

Parameters:

destination

Path to download the test example files to. The default is None, in which case the default path for app data is used.

force

Whether to always download the test example files. The default is False, in which case if the test example files are cached, they are reused.

Returns:

List[str] Local paths to the downloaded test example files.

Return type:

Union[str, PathLike]

Examples

>>> import ansys.meshing.prime as prime
>>> import ansys.meshing.prime.examples as prime_examples
>>> with prime.launch_prime() as session:
>>>     model = session.model
>>>     examples = prime_examples.unit_test_examples.download_test_examples()

Connect with Ansys