示例#1
0
 private void InitTask()
 {
     //TODO 获取需要执行的任务
     List<string> drwings = Util.drwings;
     //drwings.Add(@"C:\Users\wliu\Desktop\chengxu\新建文件夹\DRU0000562.dwg");
     for (int i = 0; i < drwings.Count; i++)
     {
         task = TaskFactroy.CreateTaskByType(TaskType.DefaultTask);
         task.AbsPath = drwings[i];
         task.AcAppComObj = this.acAppComObj;
         task.SavePath = ConfigurationManager.AppSettings["savePath"].ToString();
         task.SetDefaultRules(rules);
         task.TaskName = "drwing_" + i;
         task.Init();
         taskList.Add(task);
     }
 }
示例#2
0
        private void InitTask()
        {
            //TODO 获取需要执行的任务
            List <string> drwings = Util.drwings;

            //drwings.Add(@"C:\Users\wliu\Desktop\chengxu\新建文件夹\DRU0000562.dwg");
            for (int i = 0; i < drwings.Count; i++)
            {
                task             = TaskFactroy.CreateTaskByType(TaskType.DefaultTask);
                task.AbsPath     = drwings[i];
                task.AcAppComObj = this.acAppComObj;
                task.SavePath    = ConfigurationManager.AppSettings["savePath"].ToString();
                task.SetDefaultRules(rules);
                task.TaskName = "drwing_" + i;
                task.Init();
                taskList.Add(task);
            }
        }