read_pmdat#
- FileIO.read_pmdat(file_name, file_read_params)#
Read a PyPrimeMesh data (PMDAT) file.
- Parameters:
- file_name
str
Path to the data file on disk.
- file_read_params
FileReadParams
Parameters for reading the data file.
- file_name
- Returns:
- :
FileReadResults
Results from reading the data file.
- Return type:
Notes
This method does not support Unicode paths.
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)