import clr clr.AddReference('DHI.Solutions.GISManager.Tools.MeshProcessing') from DHI.Solutions.GISManager.Tools.MeshProcessing import * clr.AddReference('DHI.Solutions.Generic') from DHI.Solutions.Generic import * from System import * def DoQueryTimeSeries(): """ """ gisModule = app.Modules.Get('GIS Manager') mesh = gisModule.DefaultMeshDataProvider.MeshList.Fetch("/MyGroup/flow2") tool = app.Tools.CreateNew('QueryTimeSeries') tool.InputItems.Add(mesh) tool.TimeSeriesName = "/MyTimeseries" tool.SelectionTime = SelectionTimeType.Full tool.XCoordinate = 346379.5404 tool.YCoordinate = 6144642.9888 tool.MeshItemName = "Current Speed" tool.TimeseriesUnit = "meter" tool.TimeSeriesValueType = DataSeriesValueType.Instantaneous tool.TimeSeriesVariable = "Current Speed" tool.OutputTSGroup = "/" tool.Execute() return tool.OutputItems