    

 ## On this page

  

 

 # write\_h5\_and\_cdb\_file

 Last update: 16.07.2026 

<a id="compolyx.SolidModel.write_h5_and_cdb_file"></a>

## SolidModel.write\_h5\_and\_cdb\_file(path, wb\_mesh\_transfer)

Writes the .h5 and .cdb file for ANSYS Workbench application. The file extensions are added automatically.

### Parameters

- path: The file path without extension.
- wb\_mesh\_transfer: Boolean for whether the files are consumed by the Mechanical application.

### Usage

solid\_model.write\_h5\_and\_cdb\_file(r’C: mphull\_solid\_model’, True)