: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
src/dm/impls/plex/plexexodusii.c
## Implementations
PetscViewerExodusIIGetId_ExodusII in src/dm/impls/plex/plexexodusii.c
---
[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)