프로젝트

일반

사용자정보

개정판 a0e3dca4

IDa0e3dca465636997b86e34362f8b403766a6fbf7
상위 31911f94
하위 6a85128e

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

dev issue #706 : Line modeling 수정 / ValidationCheck 추가 / 우선순위 Modeling 적용 / 에러 메시지 추가

Change-Id: I382716081a63a8fa2ac2b983ac7194c0c4b57ce7

차이점 보기:

DTI_PID/SPPIDConverter/ConverterDocking.cs
193 193
            Placement _placement = new Placement();
194 194
            LMADataSource dataSource = new LMADataSource();//placement.PIDDataSource;
195 195

  
196
            //radApp.Documents.Open(@"\\192.168.0.85\Project_ID2\ID2CPChemSite\PID\P&ID Reference Data\Symbols\Instrumentation\Actuators\Actuator Handwheel.sym");
197
            ////MessageBox.Show(radApp.ActiveDocument.ActiveSheet.DrawingObjects.Count.ToString() + "\r\n" + radApp.Documents.Count);
198
            //radApp.ActiveDocument.Close(false);
199
            //radApp.Documents.Open(@"\\192.168.0.85\Project_ID2\ID2CPChemSite\PID\P&ID Reference Data\Symbols\Instrumentation\Actuators\Motor Actuator 270 STD.sym");
200
            ////MessageBox.Show(radApp.ActiveDocument.ActiveSheet.DrawingObjects.Count.ToString() + "\r\n" + radApp.Documents.Count);
201
            //radApp.ActiveDocument.Close(false);
202

  
203
            LMWSSites ss = new  LMWSSites();
204
            ss.Collect(dataSource);
205
            
206
            foreach (LMWSSite item in ss)
207
            {
208
                string aa =item.get_Name();
209
                foreach (LMPlantGroup P in item.PlantGroups)
210
                {
196
            _LMAItem item = _placement.PIDCreateItem(@"\Piping\Routing\Process Lines\Primary Piping.sym");
197
            PlaceRunInputs placeRunInputs = new PlaceRunInputs();
198
            placeRunInputs.AddPoint(0, 0);
199
            placeRunInputs.AddPoint(0.01, 0);
200
            placeRunInputs.AddPoint(0.01, -0.01);
201
            LMConnector cc = _placement.PIDPlaceRun(item, placeRunInputs);
211 202

  
212
                }
203
            _LMAItem item2 = _placement.PIDCreateItem(@"\Piping\Routing\Process Lines\Primary Piping.sym");
204
            PlaceRunInputs placeRunInputs2 = new PlaceRunInputs();
205
            placeRunInputs2.AddPoint(0.02, 0);
206
            placeRunInputs2.AddConnectorTarget(cc, 0.01, 0);
207
            LMConnector cc2 =_placement.PIDPlaceRun(item2, placeRunInputs2);
208

  
209

  
210

  
211

  
212

  
213
            _LMAItem item3 = _placement.PIDCreateItem(@"\Piping\Routing\Process Lines\Primary Piping.sym");
214
            PlaceRunInputs placeRunInputs3 = new PlaceRunInputs();
215
            placeRunInputs3.AddPoint(0.01, 0.01);
216
            if (cc2.ConnectItem1SymbolObject != null)
217
            {
218
                placeRunInputs3.AddSymbolTarget(cc2.ConnectItem1SymbolObject, 0.01, 0);
213 219
            }
220
            else if (cc2.ConnectItem2SymbolObject != null)
221
            {
222
                placeRunInputs3.AddSymbolTarget(cc2.ConnectItem2SymbolObject, 0.01, 0);
223
            }
224
            
225
            _placement.PIDPlaceRun(item3, placeRunInputs3);
226

  
214 227
        }
215 228
        [DllImport("user32.dll")]
216 229
        public static extern int FindWindow(string lpClassName, string lpWindowName);

내보내기 Unified diff

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