StartAngle: Double;
The StartAngle property returns factor rotation angle.
Executing the example requires that the repository contains a regular report with the Report identifier, the report first sheet must contain only the map with the icon factor on the Regions layer.
Sub Main;
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;
Map := Obj.Item(0).Extension As IMap; // map on report sheet
Layer := Map.Layers.FindByName("Regions");
ImageVisual := Layer.Visuals.Item(0) As IMapImageVisual; // factor
ImageVisual.StartAngle := 50;
Report.MetabaseObject.Save;
End Sub Main;
After executing the example the initial rotation angle of the icon factor is determined.
See also: