462 {
463 if (Properties.Settings.Default.LibPath.Contains("MTB"))
464 {
467 return (int)com.doubles[0];
468 }
469 else if (Properties.Settings.Default.LibPath.Contains("Prio"))
470 {
471 return Microscope.sdk.GetNosePiece();
472 }
473 else if(Properties.Settings.Default.PycroManager)
474 {
475 return MicroManager.Objectives.GetPosition();
476 }
477 else if(!Properties.Settings.Default.PMicroscope && Automation.Properties.ContainsKey("GetO1"))
478 {
479 if (Function.Functions.ContainsKey("GetO7"))
480 {
481 bool b;
482
483 b = (bool)Automation.GetProperty("Get01");
484 if (b)
485 return 0;
486 b = (bool)Automation.GetProperty("Get02");
487 if (b)
488 return 1;
489 b = (bool)Automation.GetProperty("Get03");
490 if (b)
491 return 2;
492 b = (bool)Automation.GetProperty("Get04");
493 if (b)
494 return 3;
495 b = (bool)Automation.GetProperty("Get05");
496 if (b)
497 return 4;
498 b = (bool)Automation.GetProperty("Get06");
499 if (b)
500 return 5;
501 b = (bool)Automation.GetProperty("Get07");
502 if (b)
503 return 6;
504 }
505 else
506 {
507 bool b;
508
509 b = (bool)Automation.GetProperty("Get01");
510 if (b)
511 return 0;
512 b = (bool)Automation.GetProperty("Get02");
513 if (b)
514 return 1;
515 b = (bool)Automation.GetProperty("Get03");
516 if (b)
517 return 2;
518 b = (bool)Automation.GetProperty("Get04");
519 if (b)
520 return 3;
521 b = (bool)Automation.GetProperty("Get05");
522 if (b)
523 return 4;
524 b = (bool)Automation.GetProperty("Get06");
525 if (b)
526 return 5;
527 }
528 }
529 return 0;
530 }