read_pmdat#
- FileIO.read_pmdat(file_name, file_read_params)#
Function that reads PyPrimeMesh data file.
PyPrimeMesh data files have pmdat extension.
- Parameters:
- file_name
str
Path to file on disk.
- file_read_params
FileReadParams
Parameter to read a file.
- file_name
- Returns:
FileReadResults
Returns FileReadResults.
- Return type:
Notes
This API does not support Unicode paths now.
Examples
>>> import ansys.meshing.prime as prime >>> #connect client to server and get model from it >>> client = prime.Client(ip="localhost", port=50060) >>> model = client.model >>> file_io = prime.FileIO(model=model) >>> file_read_params = prime.FileReadParams(model=model) >>> results = file_io.read_pmdat("/tmp/file.pmdat", file_read_params)