import clr clr.AddReference('DHI.Solutions.GISManager.Tools.MeshProcessing') from DHI.Solutions.GISManager.Tools.MeshProcessing import * from System import * def DoQueryFeatureClass(): """ """ gisModule = app.Modules.Get('GIS Manager') mesh = gisModule.DefaultMeshDataProvider.MeshList.Fetch("/MyGroup/flow2") tool = app.Tools.CreateNew('QueryFeatureClass') tool.InputItems.Add(mesh) tool.FeatureClassName = "/MyFeatureClass" tool.SelectionVariable = SelectionVariableENUM.Statistic tool.Execute() return tool.OutputItems