API Reference > imodeljs-backend > Elements > LinearlyLocated > getLinearElementId getLinearElementId MethodStatic Query for the Id of the Linear-Element along which the specified LinearlyLocated Element is located. getLinearElementId(iModel: IModelDb, linearlyLocatedElementId: Id64String): Id64String | undefined Parameter Type Description iModel IModelDb The iModel to query from. linearlyLocatedElementId Id64String The id of the LinearlyLocated Element to query a Linear-Element for. Returns - Id64String | undefined Returns the Id of the Linear-Element or undefined is none is assigned. Defined in core/backend/src/domains/LinearReferencingElements.ts Line 628 Last Updated: 13 June, 2024