프로젝트

일반

사용자정보

개정판 224535bb

ID224535bb48a16d6e184a159912ed65a9d789b805
상위 2776a8d2
하위 7dcb95df

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #569 : PDF To Image 변환툴 여러 파일 가능하게 수정 / OPC 작업을 위한 Drawing 정보 정리

Change-Id: I62beba4afda9acbeab9bfb5ace94ca221673c584

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling_OPC.cs
29 29
    {
30 30
        Placement _placement;
31 31
        LMADataSource dataSource;
32
        dynamic newDrawing;
33 32
        dynamic application;
33
        string SPPID_DrawingName;
34 34
        Ingr.RAD2D.Application radApp;
35 35
        SPPID_Document document;
36
        ETCSetting _ETCSetting;
37 36

  
38
        public string DocumentLabelText { get; set; }
39

  
40
        int CurrentCount;
41
        List<Tuple<string, Line, Line>> BranchLines = new List<Tuple<string, Line, Line>>();
42

  
43
        public AutoModeling_OPC(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp)
37
        public AutoModeling_OPC(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp, string SPPID_DrawingName)
44 38
        {
45 39
            this.document = document;
46 40
            this.application = application;
47 41
            this.radApp = radApp;
48

  
49

  
50
            this._ETCSetting = ETCSetting.GetInstance();
42
            this.SPPID_DrawingName = SPPID_DrawingName;
51 43
        }
52 44

  
53
        private bool CheckProjectConnection()
45
        public void Run()
54 46
        {
55
            bool result = false;
47
            Placement _placement = new Placement();
48
            LMADataSource dataSource = _placement.PIDDataSource;
49

  
50

  
51

  
56 52

  
57 53

  
58
            return result;
54

  
55

  
56

  
57

  
58
            ReleaseCOMObjects(_placement);
59
            ReleaseCOMObjects(dataSource);
60
        }
61

  
62
        public void ReleaseCOMObjects(params object[] objVars)
63
        {
64
            int intNewRefCount = 0;
65
            foreach (object obj in objVars)
66
            {
67
                if (!Information.IsNothing(obj) && System.Runtime.InteropServices.Marshal.IsComObject(obj))
68
                    intNewRefCount = intNewRefCount + System.Runtime.InteropServices.Marshal.FinalReleaseComObject(obj);
69
            }
59 70
        }
60 71
    }
61 72
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)