Skip to main content

Prime Mesh Python client library 2026 R1

read_pmdat

Last update: 02.04.2026

FileIO.read_pmdat(file_name, file_read_params)

Read a PyPrimeMesh data (PMDAT) file.

Parameters:

file_name

Path to the data file on disk.

file_read_params

Parameters for reading the data file.

Returns:

FileReadResults

Results from reading the data file.

Return type:

FileReadResults

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)

Connect with Ansys