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