getFromToLocation MethodStatic
Query for the single LinearlyReferenced FromToLocation aspect owned by the specified LinearlyLocated Element. If more than one aspect is expected, use LinearlyLocated.getFromToLocations instead.
getFromToLocation(iModel: IModelDb, linearlyLocatedElementId: Id64String): LinearlyReferencedFromToLocation | undefined
throws IModelError
Parameter | Type | Description |
---|---|---|
iModel | IModelDb | The iModel to query from. |
linearlyLocatedElementId | Id64String | The id of the LinearlyLocated Element to query about. |
Returns - Returns an LinearlyReferencedFromToLocation or undefined is none is found.
Defined in
Last Updated: 08 January, 2020