    

 ## On this page

  

 

 # ansys.meshing.prime.FileIO

 Last update: 17.07.2025 

#### FileIO.import\_cad(file\_name, params)

Import a CAD file from disk.

Supported CAD file formats on Windows are:

\*.scdoc \*.fmd \*.agdb \*.pmdb \*.meshdat \*.mechdat \*.dsdb \*.cmdb \*.sat \*.sab \*.dwg \*.dxf \*.model \*.exp \*.CATPart \*.CATProduct \*.cgr \*.3dxml \*.prt\* \*.asm\* \*.iges \*.igs \*.ipt \*.iam \*.jt \*.prt \*.x\_t \*.x\_b \*.par \*.psm \*.asm \*.sldprt \*.sldasm \*.step \*.stp \*.stl \*.plmxml \*.tgf

Supported CAD file formats on Linux are:

\*.fmd \*.agdb \*.pmdb \*.meshdat \*.mechdat \*.dsdb \*.cmdb \*.sat \*.sab \*.CATPart \*.CATProduct \*.iges \*.igs \*.jt \*.x\_t \*.x\_b \*.step \*.stp \*.stl \*.plmxml \*.tgf

See the documentation for a comprehensive list of supported formats.

- **Parameters:****file\_name**: Path to the CAD file on disk.
    
    **params**: Parameters for importing the CAD file.
- **Returns:**[`ImportCadResults`](ansys.meshing.prime.ImportCadResults.md#ansys.meshing.prime.ImportCadResults): Results from importing the CAD file.
- **Return type:**[`ImportCadResults`](ansys.meshing.prime.ImportCadResults.md#ansys.meshing.prime.ImportCadResults)

### Examples

```pycon
&gt;&gt;&gt; import ansys.meshing.prime as prime
&gt;&gt;&gt; # connect client to server and get model from it
&gt;&gt;&gt; client = prime.Client(ip="localhost", port=50060)
&gt;&gt;&gt; model = client.model
&gt;&gt;&gt; file_io = prime.FileIO(model=model)
&gt;&gt;&gt; params = ImportCadParams(model=model)
&gt;&gt;&gt; results = file_io.import_cad(
                "/tmp/my_cad.x_t", params=params)

```