read_pmdat#

FileIO.read_pmdat(file_name, file_read_params)#

Function that reads PyPrimeMesh data file.

PyPrimeMesh data files have pmdat extension.

Parameters:
file_namestr

Path to file on disk.

file_read_paramsFileReadParams

Parameter to read a file.

Returns:
FileReadResults

Returns FileReadResults.

Return type:

FileReadResults

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)