download_toy_car_fmd#
- ansys.meshing.prime.examples.download_toy_car_fmd(destination=None, force=False)#
Download FMD file for the toy car 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
If true, the file is always downloaded. If false, an existing file in the cache may be re-used.
- Returns:
str
Local path to the downloaded file
- Raises:
ValueError
When the provided destination path does not exist on file
- Return type:
Examples
>>> import ansys.meshing.prime as prime >>> import ansys.meshing.prime.examples as prime_examples >>> with prime.launch_prime() as session: >>> model = session.model >>> toy_car = prime_examples.download_toy_car_fmd() >>> with prime.FileIO(model) as io: >>> _ = io.import_cad(toy_car, params=prime.ImportCADParams(model)) >>> print(model)