getLinearElementId MethodStatic

Query for the Id of the Linear-Element along which the specified LinearlyLocated Element is located.

getLinearElementId(iModel: IModelDb, linearlyLocatedElementId: string): string | undefined

@returns Returns the Id of the Linear-Element or undefined is none is assigned.

Parameter Type Description
iModel IModelDb The iModel to query from.
linearlyLocatedElementId string The id of the LinearlyLocated Element to query a Linear-Element for.

Returns - string | undefined

Returns the Id of the Linear-Element or undefined is none is assigned.

Defined in

Last Updated: 04 June, 2026