insertAspect Method
Insert a new aspect into the iModel.
insertAspect(aspectProps: ElementAspectProps): string
@returns The newly inserted aspect Id.
@throws EditTxnError if this EditTxn is not active.
@throws IModelError if insertion fails.
| Parameter | Type | Description |
|---|---|---|
| aspectProps | ElementAspectProps | The properties of the new aspect. |
Returns - string
The newly inserted aspect Id.
Defined in
- backend/src/EditTxn.ts Line 317
Last Updated: 28 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.