import clr clr.AddReference('DHI.Solutions.GISManager.UI.Tools.DfsuImportTool') from DHI.Solutions.GISManager.UI.Tools.DfsuImportTool import * def DoDfsuImportTool(): """ """ gisModule = app.Modules.Get('GIS Manager') group = gisModule.DefaultMeshDataProvider.MeshGroupList.Fetch("/MyGroup") tool = app.Tools.CreateNew('Import from Dfsu file') tool.InputItems.Add(group) tool.MeshName = "/MyMesh" tool.FilePath = "C:\\flow.dfsu" tool.Execute() return tool.OutputItems