## rd.add_coordinates()


Embed 3D coordinates if the molecule has none.


Usage

``` python
rd.add_coordinates(
    mol,
    *,
    seed=EMBED_SEED,
    in_place=False,
)
```


## Parameters


`mol: Mol`  
RDKit molecule.

`seed: int | None = EMBED_SEED`  
Random seed for embedding. If `None`, use a random seed.

`in_place: bool = ``False`  
If `True`, modify `mol` instead of returning a copy.


## Returns


`Mol`  
The molecule with coordinates, or `mol` unchanged if it already had

them.


## Raises


`GeometryConversionError`  
If embedding fails, even from random initial coordinates.
