Read SIF data from file
Read all data for a given data type name and id.
using System;
using System.Collections.Generic;
using DNV.Sesam.SifApi.Core;
using NUnit.Framework;
namespace DNV.Sesam.SifApi.IO.Doc
{
public partial class ISifDataReaderTests
{
[Test]
public void ReadData()
{
using (var adapter = SesamDataFactory.CreateSifInput( "T1.FEM"))
{
//read the GELMNT1 data with id 45
var data = adapter.ReadData("GELMNT1",45);
Assert.That(data.Count,Is.EqualTo(1));
Assert.That(data[0].Data, Is.EqualTo(new double[] {45,45,28,0,45,51,42,74,72,141,75,77}));
}
}
}
}