StartAngle: Double;
The StartAngle property returns indicator rotation angle.
Executing the example requires that the repository contains a regular report with the REPORT identifier, the report's first sheet must contain only a map with the icon indicator on the Regions layer.
Add links to the Map, Metabase, Report, Tab system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
MetabaseObject: IMetabaseObject;
Report: IPrxReport;
Table: IPrxTable;
Obj: ITabObjects;
Layer: IMapLayer;
Map: IMap;
ImageVisual: IMapImageVisual;
Begin
Metabase := MetabaseClass.Active;
MetabaseObject := Metabase.ItemById("REPORT").Edit;
Report := MetabaseObject As IPrxReport;
Table := Report.Sheets.Item(0) As IPrxTable;
Obj := Table.TabSheet.Objects;
// Determine a map on report sheet
Map := Obj.Item(0).Extension As IMap;
Layer := Map.Layers.FindByName("Regions");
// Determine indicator rotation angle
ImageVisual := Layer.Visuals.Item(0) As IMapImageVisual;
ImageVisual.StartAngle := 50;
Report.MetabaseObject.Save;
End Sub UserProc;
After executing the example the initial rotation angle of the icon indicator is determined.
See also: