Skip to main content

Prime Mesh Python client library 2024 R1 SP1

ansys.meshing.prime.examples

Last update: 17.07.2025

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

Download PMDAT file for the block model example.

  • Parameters: destination: Optional[str] : Destination for the file to be downloaded. If nothing is provided, the default path in app data is used.

    force: bool : Option to download the file. If true, the file is always downloaded. If false, an existing file in the cache may be reused.

  • Returns: str : Local path to the downloaded file.

  • 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
>>>     block_model = prime_examples.download_block_model_pmdat()
>>>     with prime.FileIO(model) as io:
>>>         _ = io.read_pmdat(block_model, params=prime.FileReadParams(model))
>>>     print(model)

Connect with Ansys