insertFromTo Method


insertFromTo(txn, linearElementId, fromToPosition, locatedElementId) @beta

Insert this LinearLocation using an explicit transaction.

insertFromTo(txn: EditTxn, linearElementId: string, fromToPosition: LinearlyReferencedFromToLocationProps, locatedElementId: string): string

Parameter Type Description
txn EditTxn  
linearElementId string  
fromToPosition LinearlyReferencedFromToLocationProps  
locatedElementId string  

Returns - string



insertFromTo(iModel, linearElementId, fromToPosition, locatedElementId)

Deprecated  Use LinearLocation.insertFromTo(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.

Insert this LinearLocation.

insertFromTo(iModel: IModelDb, linearElementId: string, fromToPosition: LinearlyReferencedFromToLocationProps, locatedElementId: string): string

Parameter Type Description
iModel IModelDb  
linearElementId string  
fromToPosition LinearlyReferencedFromToLocationProps  
locatedElementId string  

Returns - string


Defined in

Last Updated: 28 April, 2026