API Reference > imodeljs-backend > Elements > LinearlyLocated > insertFromTo insertFromTo MethodStatic Insert a new LinearlyLocated element into an iModel at a specific from-to location along an existing Linear-Element. insertFromTo(iModel: IModelDb, elProps: ElementProps, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps): Id64String throws IModelError if unable to insert the element. Parameter Type Description iModel IModelDb The iModel to insert the new element into. elProps ElementProps The properties of the new element. linearElementId Id64String The Id of the Linear-Element along which the new LinearlyLocated will be inserted. fromToPosition LinearlyReferencedFromToLocationProps Linear position. Returns - Id64String The newly inserted element's Id. Defined in core/backend/src/domains/LinearReferencingElements.ts Line 499 Last Updated: 13 June, 2024