Пример #1
0
        /// <summary>
        /// Read a robot file and write a copy to a new location
        /// </summary>
        /// <param name="readPath"></param>
        /// <param name="writePath"></param>
        public static void ReadWriteTest(FilePath readPath, FilePath writePath)
        {
            var robot = new RobotController();
            RobotIDMappingTable idMap = new RobotIDMappingTable();

            Model.Model model = robot.LoadModelFromRobot(readPath, ref idMap);
            robot.Close();
            robot.Release();
            robot = new RobotController();
            robot.WriteModelToRobot(writePath, model, ref idMap);
        }
Пример #2
0
 /// <summary>
 /// Initialises a new RobotConversionContext instance using the specified mapping table and options
 /// </summary>
 /// <param name="idMap"></param>
 /// <param name="options"></param>
 public RobotConversionContext(RobotIDMappingTable idMap, RobotConversionOptions options, AlertLog log) 
     : this(idMap)
 {
     Options = options;
     Log = log;
 }
Пример #3
0
 /// <summary>
 /// Constructor.  Initialises a new RobotConversionContext using the
 /// specififed ID Mapping Table
 /// </summary>
 /// <param name="idMap">The ID mapping table to be used.  May be blank, but should not be null.</param>
 public RobotConversionContext(RobotIDMappingTable idMap)
 {
     IDMap = idMap;
 }