> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# export_mapdl_cdb

#### 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`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/api/_autosummary/ansys.meshing.prime.ExportMapdlCdbResults)**

Results from exporting the CDB file.

**Return type:**

[`ExportMapdlCdbResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/api/_autosummary/ansys.meshing.prime.ExportMapdlCdbResults)

### Notes

This method does not support Unicode paths.

### Examples

```python theme={null}
>>> 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)
```
