Skip to content

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

Get an instance

// Navigate to the ISIAPILaneExits you need via the ISIAPI tree.
// See ISIAPI for the activation root.
var laneExits = /* ... */;
' Navigate to the ISIAPILaneExits you need via the ISIAPI tree.
' See ISIAPI for the activation root.
Dim laneExits As ISIAPILaneExits = Nothing
# Navigate to the ISIAPILaneExits you need via the ISIAPI tree.
# See ISIAPI for the activation root.
laneExits = ...
# Navigate to the ISIAPILaneExits you need via the ISIAPI tree.
# See ISIAPI for the activation root.
$laneExits = $null

Properties

Count

int Count { get; }

Type int

Code samples
int count = laneExits.Count;
Dim count As Integer = laneExits.Count
count = laneExits.Count
$count = $laneExits.Count

this[]

ISIAPILaneExit this[] { get; }

Type ISIAPILaneExit

Code samples
var this[] = laneExits.this[];
Dim this[] As ISIAPILaneExit = laneExits.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);
Dim result As Boolean = laneExits.LaneExitExists(0)
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();
Dim result As ISIAPILaneExit = laneExits.AddLane()
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()