:orphan:
# PetscViewerExodusIIGetId
Get the file id of the `PETSCVIEWEREXODUSII` file 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode PetscViewerExodusIIGetId(PetscViewer viewer, int *exoid)
```
Logically Collective


## Input Parameter

- ***viewer -*** the `PetscViewer`



## Output Parameter

- ***exoid -*** The ExodusII file id





## See Also
 `PETSCVIEWEREXODUSII`, `PetscViewer`, `PetscViewerFileSetMode()`, `PetscViewerCreate()`, `PetscViewerSetType()`, `PetscViewerBinaryOpen()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexexodusii.c.html#PetscViewerExodusIIGetId_ExodusII">PetscViewerExodusIIGetId_ExodusII in src/dm/impls/plex/plexexodusii.c</A><BR>


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


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