Hello, I trying this example from flexpendan sdk, And I got this error while trying to compile:
Error 1 The type or namespace name ‘Modules’ could not be found (are you missing a using directive or an assembly reference?) C:\Users\W7\Documents\Visual Studio 2008\Projects\TpsViewIRC5WartsilaApp\TpsViewIRC5WartsilaApp\view.cs 184 18 TpsViewIRC5WartsilaApp
This is the exampled extracted from SDK help
private int CountRoutines(Controller c)
{
int result = 0;
Task tasks;
try
{
tasks = c.Rapid.GetTasks();
Modules modules;
// Iterate tasks
foreach (Task t in tasks)
{
// Get all modules of the task
modules = t.GetModules();
Routines routines;
foreach (Module m in modules)
{
// Get all routines of the module
routines = m.GetRoutines();
result += routines.Lenght;
}
}
}
catch (GeneralException ee)
{
// TODO: Add error handling
}
catch (System.Exception ee)
{
// TODO: Add error handling
}
return result;
}
Any Idea?
Thanks for help