insert MethodStatic


insert(txn, locatedElementId, from, to, fromReferentId?, toReferentId?) @beta

Insert a new aspect using an explicit transaction.

insert(txn: EditTxn, locatedElementId: string, from: DistanceExpression, to: DistanceExpression, fromReferentId?: string, toReferentId?: string): void

Parameter Type Description
txn EditTxn  
locatedElementId string  
from DistanceExpression  
to DistanceExpression  
fromReferentId string  
toReferentId string  

Returns - void



insert(iModel, locatedElementId, from, to, fromReferentId?, toReferentId?)

Deprecated  Use LinearlyReferencedFromToLocation.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, from: DistanceExpression, to: DistanceExpression, fromReferentId?: string, toReferentId?: string): void

Parameter Type Description
iModel IModelDb  
locatedElementId string  
from DistanceExpression  
to DistanceExpression  
fromReferentId string  
toReferentId string  

Returns - void


Defined in

Last Updated: 25 April, 2026