insertFromTo MethodStatic


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

Insert a new LinearLocation using an explicit transaction.

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

Parameter Type Description
txn EditTxn  
modelId string  
categoryId string  
linearElementId string  
fromToPosition LinearlyReferencedFromToLocationProps  
locatedElementId string  

Returns - string



insertFromTo(iModel, modelId, categoryId, linearElementId, fromToPosition, locatedElementId)

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

Insert a new LinearLocation.

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

Parameter Type Description
iModel IModelDb  
modelId string  
categoryId string  
linearElementId string  
fromToPosition LinearlyReferencedFromToLocationProps  
locatedElementId string  

Returns - string


Defined in

Last Updated: 28 April, 2026