프로젝트

일반

사용자정보

개정판 d19ae675

IDd19ae675d890d3d5fbf717616140c4c1e496d94f
상위 e3e2d41f
하위 f7df92c0

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

dev issue #000 : wrapper 제거 및 프로젝트 통합

Change-Id: I7b4c718316c9fde2508aad74af913c20de2bd798

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
27 27
    {
28 28
        Placement _placement;
29 29
        LMADataSource dataSource;
30
        dynamic application;
30 31
        Ingr.RAD2D.Application radApp;
31 32
        SPPID_Document document;
32 33
        ETCSetting _ETCSetting;
33 34

  
34 35
        List<Tuple<string, Line, Line>> BranchLines = new List<Tuple<string, Line, Line>>();
35
        public AutoModeling(SPPID_Document document, Ingr.RAD2D.Application radApp)
36
        public AutoModeling(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp)
36 37
        {
37 38
            this.document = document;
39
            this.application = application;
38 40
            this.radApp = radApp;
39 41
            this._ETCSetting = ETCSetting.GetInstance();
40 42
        }
......
74 76
            _placement = new Placement();
75 77
            dataSource = _placement.PIDDataSource;
76 78

  
77
            //dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
78
            //dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName);
79
            //application.ActiveWindow.Fit();
80
            //Thread.Sleep(100);
81
            //application.ActiveWindow.Zoom = 60;
82
            //Thread.Sleep(100);
79
            dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName);
80
            application.ActiveWindow.Fit();
81
            Thread.Sleep(100);
82
            application.ActiveWindow.Zoom = 60;
83
            Thread.Sleep(100);
83 84

  
84 85
            try
85 86
            {

내보내기 Unified diff

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