프로젝트

일반

사용자정보

개정판 021176df

ID021176df893f69a4b69df1d1d3ef3ba9a3eeb70b
상위 d6830394
하위 fac558c5, e538f7d2

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

dev issue #000 : edit

Change-Id: I231b6556b32b46614896bd2da382718c5434b5c5

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
43 43
        {
44 44
            _placement = new Placement();
45 45
            dataSource = _placement.PIDDataSource;
46
            //dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
47
            //dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName);
48
            //application.ActiveWindow.Fit();
49
            //Thread.Sleep(100);
50
            //application.ActiveWindow.Zoom = 60;
51
            //Thread.Sleep(100);
46
            dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
47
            dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName);
48
            application.ActiveWindow.Fit();
49
            Thread.Sleep(100);
50
            application.ActiveWindow.Zoom = 60;
51
            Thread.Sleep(100);
52 52

  
53 53

  
54 54
            try
55 55
            {
56 56
                // Equipment Modeling
57 57
                foreach (Equipment equipment in document.Equipments)
58
                {
59 58
                    EquipmentModeling(equipment);
60
                }
61
                    
62 59
                
63 60
                // LineRun Symbol Modeling
64 61
                foreach (LineNumber lineNumber in document.LINENUMBERS)
......
196 193
            //System.Windows.Forms.MessageBox.Show("end");
197 194
        }
198 195

  
199
        public void Test()
200
        {
201
            _placement = new Placement();
202
            dataSource = _placement.PIDDataSource;
203

  
204
            DependencyObject drawingObject = radApp.ActiveDocument.SelectSet[0] as DependencyObject;
205
            if (drawingObject != null)
206
            {
207
                string modelitemID = drawingObject.AttributeSets[0][5].GetValue().ToString();
208
                radApp.ActiveDocument.SelectSet.RemoveAll();
209
                LMPipeRun run = dataSource.GetPipeRun(modelitemID);
210
                _LMAItem item = run.AsLMAItem();
211
                string modelitemID2 = item.Id;
212
                _placement.PIDAutoJoin(item, AutoJoinEndConstants.autoJoin_Both, ref item);
213
                string afterModelItemID = item.Id;
214
                if (modelitemID2 != afterModelItemID)
215
                {
216

  
217
                }
218
            }
219
        }
220

  
221 196
        private void LineModelingByRun(LineRun run)
222 197
        {
223 198
            Line prevLine = null;

내보내기 Unified diff

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