# PetscObjectSetFromOptions
Sets generic parameters from user options. 
## Synopsis
```
#include "petscsys.h"    
PetscErrorCode PetscObjectSetFromOptions(PetscObject obj)
```
Collective


## Input Parameter

- ***obj -*** the `PetscObject`



## Note
We have no generic options at present, so this does nothing




## See Also
 `PetscObjectSetOptionsPrefix()`, `PetscObjectGetOptionsPrefix()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/inherit.c.html#PetscObjectSetFromOptions">src/sys/objects/inherit.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/inherit.c)


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