Skip to content

LaneExits

Type ISIAPILaneExits · Interface
Namespace SIDRASolutions.SI.API
Assembly SIDRASolutions.SI.API.dll
COM CLSID 84511E1A-C253-4CE4-B173-52633F23A593

Declaration

[Guid("84511E1A-C253-4CE4-B173-52633F23A593")]
public interface ISIAPILaneExits

Members

Properties

Property Type Summary
Count int
this[] ISIAPILaneExit

Methods

Method Returns Summary
LaneExitExists(int) bool
AddLane() ISIAPILaneExit Add an Exit Lane If the Leg has Exit Lane(s), if driving-on-left, the rightmost (looking in the direction of departure) Exit Lane is cloned. The cloned Lane is added to the right. If driving-on-right, the leftmost Exit Lane is cloned. The cloned Lane is added to the left. If the Leg does not have any Exit Lane, a new default Exit Lane is added.
RemoveLane() void Remove an Exit Lane If driving-on-left, the rightmost (looking in the direction of departure) Exit Lane is removed. If driving-on-right, the leftmost Exit Lane is removed.

Properties

Count

int Count { get; }

Type int

Code samples
int count = laneExits.Count;
long count;
laneExits->get_Count(&count);
count = laneExits.Count
$count = $laneExits.Count

this[]

ISIAPILaneExit this[] { get; }

Type ISIAPILaneExit

Code samples
var this[] = laneExits.this[];
CComPtr<ISIAPILaneExit> this[];
laneExits->get_this[](&this[]);
this[] = laneExits.this[]
$this[] = $laneExits.this[]

Methods

LaneExitExists(int)

bool LaneExitExists(int laneno)

Parameters

Name Type Description
laneno int Exit Lane Number, a one-based integer, counts Exit Lanes only from left to right looking in the direction of departure.

Returns bool

Code samples
bool result = laneExits.LaneExitExists(0);
VARIANT_BOOL result;
laneExits->LaneExitExists(0, &result);
result = laneExits.LaneExitExists(0)
$result = $laneExits.LaneExitExists(0)

AddLane()

Add an Exit Lane
If the Leg has Exit Lane(s), if driving-on-left, the rightmost (looking in the direction of departure) Exit Lane is cloned. The cloned Lane is added to the right. If driving-on-right, the leftmost Exit Lane is cloned. The cloned Lane is added to the left.
If the Leg does not have any Exit Lane, a new default Exit Lane is added.

ISIAPILaneExit AddLane()

Returns ISIAPILaneExit - The new added Exit Lane

Remarks

Call SIAPISite.ResetLaneMovements() manually after adding / removing Lanes. If Leg(s) has been added or removed, call SIAPISite.UpdateGeometryData() instead of ResetLaneMovements().

Code samples
var result = laneExits.AddLane();
CComPtr<ISIAPILaneExit> result;
laneExits->AddLane(&result);
result = laneExits.AddLane()
$result = $laneExits.AddLane()

RemoveLane()

Remove an Exit Lane

If driving-on-left, the rightmost (looking in the direction of departure) Exit Lane is removed. If driving-on-right, the leftmost Exit Lane is removed.

void RemoveLane()

Remarks

Call SIAPISite.ResetLaneMovements() manually after adding / removing Lanes. If Leg(s) has been added or removed, call SIAPISite.UpdateGeometryData() instead of ResetLaneMovements().

Code samples
laneExits.RemoveLane();
laneExits->RemoveLane();
laneExits.RemoveLane()
$laneExits.RemoveLane()