Skip to main content

Prime Mesh Python client library 2026 R1 SP01

export_mapdl_cdb

Last update: 29.04.2026

FileIO.export_mapdl_cdb(file_name, params)

Export an MAPDL CDB file.

Parameters:

file_name

Path to the CDB file on disk.

params

Parameters for exporting the CDB file.

Returns:

ExportMapdlCdbResults

Results from exporting the CDB file.

Return type:

ExportMapdlCdbResults

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)
>>> params = prime.ExportMapdlCdbParams(model=model)
>>> results = file_io.export_mapdl_cdb("/tmp/file.cdb", params)

Connect with Ansys