IMapLayerArrows.CreateByIDs

Syntax

CreateByIDs(OriginID: Integer; DestID: Integer): IMapArrow;

Parameters

OriginID - identifier of the territory being the arrow origin.

DestID - identifier of the territory being the arrow end point.

Description

The CreateByIDs method adds an arrow to the collection based on the specified identifiers of connected territories.

Example

Sub main;

Var

Metabase : IMetabase;

MetabaseObject: IMetabaseObject;

Report: IPrxReport;

Map : IMap;

Begin

Metabase := MetabaseClass.Active;

MetabaseObject := Metabase.ItemById("Report").Edit;

Report := MetabaseObject As IPrxReport;

Map := Report.ActiveSheet.Table.Objects.Item(0).Extension As IMap;

Map.Layers.FindByName("Regions").Arrows.CreateByIDs(98,46);

Report.MetabaseObject.Save;

End Sub main;

After executing the example an arrow is created and added to the collection, the arrow is displayed on the map. In this example, Report is an identifier of the regular report, which sheet contains the map.

See also:

IMapLayerArrows