insert MethodStatic
insert(txn, locatedElementId, at, fromReferentId?) @beta
Insert a new aspect using an explicit transaction.
insert(txn: EditTxn, locatedElementId: string, at: DistanceExpression, fromReferentId?: string): void
| Parameter | Type | Description |
|---|---|---|
| txn | EditTxn | |
| locatedElementId | string | |
| at | DistanceExpression | |
| fromReferentId | string |
Returns - void
insert(iModel, locatedElementId, at, fromReferentId?)
Deprecated Use LinearlyReferencedAtLocation.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
Insert a new aspect.
insert(iModel: IModelDb, locatedElementId: string, at: DistanceExpression, fromReferentId?: string): void
| Parameter | Type | Description |
|---|---|---|
| iModel | IModelDb | |
| locatedElementId | string | |
| at | DistanceExpression | |
| fromReferentId | string |
Returns - void
Defined in
Last Updated: 25 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.