# DMPlexCreateEGADSFromFile
Create a `DMPLEX` mesh from an EGADS, IGES, or STEP file. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateEGADSFromFile(MPI_Comm comm, const char filename[], DM *dm)
```
Collective


## Input Parameters

- ***comm     -*** The MPI communicator
- ***filename -*** The name of the EGADS, IGES, or STEP file



## Output Parameter

- ***dm       -*** The `DM` object representing the mesh





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMCreate()`, `DMPlexCreateEGADS()`, `DMPlexCreateEGADSLiteFromFile()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexegads.c.html#DMPlexCreateEGADSFromFile">src/dm/impls/plex/plexegads.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexegads.c)


[Index of all DMPlex routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
