using System;
using Slb.Ocean.Core;
using Slb.Ocean.Petrel;
using Slb.Ocean.Petrel.UI;
using Slb.Ocean.Petrel.Workflow;
using Slb.Ocean.Petrel.DomainObject;
using Slb.Ocean.Petrel.DomainObject.Seismic;
using System.Collections.Generic;
public override void ExecuteSimple()
{
// TODO: Implement the workstep logic here.
//get current primary project
Project proj = PetrelProject.PrimaryProject;
//get the root of all domain objects in the seismic domain
SeismicRoot root = SeismicRoot.Get(proj);
SeismicProject sProj = root.SeismicProject;
//Find all seismic Collections in the current project
IEnumerable<SeismicCollection> col = sProj.SeismicCollections;
List<SeismicCollection> listCol;
listCol = new List<SeismicCollection>(col);
for(int idx = 0; idx < listCol.Count;idx++)
{
SeismicCollection curr = listCol[idx];
foreach (SeismicCollection sCol in curr.SeismicCollections)
{
listCol.Add(sCol);
}
// find all seismic cubes in the current collection
foreach(SeismicCube cube in curr.SeismicCubes)
{
PetrelLogger.InfoOutputWindow(curr.Name + "contains Seismic cube " + cube.Name);
}
}
}