프로젝트

일반

사용자정보

개정판 f9cc5190

IDf9cc519089faedc1463bd9a16229d6c47ef4fff9
상위 32205389
하위 63c5305b

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

dev issue #000 : fix bug

Change-Id: If776f77b2e5603539c18a825404de4c4a364bb21

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
87 87
                    Log.Write("Start Modeling");
88 88
                    SplashScreenManager.ShowForm(typeof(SPPIDSplashScreen), true, true);
89 89
                    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetParent, (IntPtr)radApp.HWnd);
90
                    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllStepCount, 15);
90 91
                    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetDocumentName, DocumentLabelText);
91
                    
92

  
92 93
                    // Equipment Modeling
93 94
                    RunEquipmentModeling();
94 95
                    // Symbol Modeling
......
288 289
                relationships.Collect(dataSource, Filter: filter);
289 290

  
290 291
                SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllProgress, relationships.Count);
292
                if (count > 1)
293
                    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStepMinus, null);
291 294
                SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Clear Inconsistent Property Value - " + count);
292 295
                foreach (LMRelationship relationship in relationships)
293 296
                {
......
363 366
                ReleaseCOMObjects(relationships);
364 367
                count++;
365 368
            }
366

  
367
            #region 예전 방식
368
            //List<string> endClearModelItemID = new List<string>();
369
            //for (int i = 0; i < document.LINES.Count; i++)
370
            //{
371
            //    Line item = document.LINES[i];
372
            //    string modelItemID = item.SPPID.ModelItemId;
373
            //    if (!string.IsNullOrEmpty(modelItemID))
374
            //    {
375
            //        LMModelItem modelItem = dataSource.GetModelItem(modelItemID);
376
            //        if (modelItem != null)
377
            //        {
378
            //            LMAAttribute attribute = modelItem.Attributes["NominalDiameter"];
379
            //            if (attribute != null)
380
            //                attribute.set_Value(DBNull.Value);
381

  
382
            //            modelItem.Commit();
383
            //            ReleaseCOMObjects(modelItem);
384
            //        }
385
            //    }
386
            //    if (!endClearModelItemID.Contains(modelItemID))
387
            //        endClearModelItemID.Add(modelItemID);
388
            //    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.UpProgress, null);
389
            //}
390
            //for (int i = 0; i < document.SYMBOLS.Count; i++)
391
            //{
392
            //    Symbol item = document.SYMBOLS[i];
393
            //    string repID = item.SPPID.RepresentationId;
394
            //    string modelItemID = item.SPPID.ModelItemID;
395
            //    if (!string.IsNullOrEmpty(modelItemID))
396
            //    {
397
            //        LMModelItem modelItem = dataSource.GetModelItem(modelItemID);
398
            //        if (modelItem != null)
399
            //        {
400
            //            LMAAttribute attribute = modelItem.Attributes["NominalDiameter"];
401
            //            if (attribute != null)
402
            //                attribute.set_Value(DBNull.Value);
403
            //            attribute = modelItem.Attributes["PipingPoint1.NominalDiameter"];
404
            //            if (attribute != null)
405
            //                attribute.set_Value(DBNull.Value);
406
            //            attribute = modelItem.Attributes["PipingPoint2.NominalDiameter"];
407
            //            if (attribute != null)
408
            //                attribute.set_Value(DBNull.Value);
409
            //            modelItem.Commit();
410

  
411
            //            modelItem.Commit();
412
            //            ReleaseCOMObjects(modelItem);
413
            //        }
414
            //    }
415
            //    if (!string.IsNullOrEmpty(repID))
416
            //    {
417
            //        LMSymbol symbol = dataSource.GetSymbol(repID);
418
            //        if (symbol != null)
419
            //        {
420
            //            foreach (LMConnector connector in symbol.Connect1Connectors)
421
            //            {
422
            //                if (connector.get_ItemStatus() == "Active" && !endClearModelItemID.Contains(connector.ModelItemID))
423
            //                {
424
            //                    endClearModelItemID.Add(connector.ModelItemID);
425
            //                    LMModelItem modelItem = connector.ModelItemObject;
426
            //                    if (modelItem != null)
427
            //                    {
428
            //                        LMAAttribute attribute = modelItem.Attributes["NominalDiameter"];
429
            //                        if (attribute != null)
430
            //                            attribute.set_Value(DBNull.Value);
431

  
432
            //                        modelItem.Commit();
433
            //                        ReleaseCOMObjects(modelItem);
434
            //                    }
435
            //                }
436
            //            }
437
            //            foreach (LMConnector connector in symbol.Connect2Connectors)
438
            //            {
439
            //                if (connector.get_ItemStatus() == "Active" && !endClearModelItemID.Contains(connector.ModelItemID))
440
            //                {
441
            //                    endClearModelItemID.Add(connector.ModelItemID);
442
            //                    LMModelItem modelItem = connector.ModelItemObject;
443
            //                    if (modelItem != null)
444
            //                    {
445
            //                        LMAAttribute attribute = modelItem.Attributes["NominalDiameter"];
446
            //                        if (attribute != null)
447
            //                            attribute.set_Value(DBNull.Value);
448

  
449
            //                        modelItem.Commit();
450
            //                        ReleaseCOMObjects(modelItem);
451
            //                    }
452
            //                }
453
            //            }
454
            //            ReleaseCOMObjects(symbol);
455
            //        }
456
            //    }
457
            //    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.UpProgress, null);
458
            //}
459
            #endregion
460 369
        }
461 370
        private void RunEndBreakModeling()
462 371
        {
......
1616 1525
                    NewBranchLines.Add(groupLine);
1617 1526
                    continue;
1618 1527
                }
1528

  
1619 1529
                _LMAItem _LMAItem = _placement.PIDCreateItem(groupLine.SPPID.MAPPINGNAME);
1620 1530
                LMSymbol _LMSymbolStart = null;
1621 1531
                LMSymbol _LMSymbolEnd = null;
......
1632 1542
                    else if (connector.ConnectedObject.GetType() == typeof(Symbol))
1633 1543
                    {
1634 1544
                        Symbol targetSymbol = connector.ConnectedObject as Symbol;
1545
                        GetTargetSymbolConnectorPoint(targetSymbol.CONNECTORS.Find(z => z.ConnectedObject == groupLine), targetSymbol, ref x, ref y);
1635 1546
                        if (groupLine.CONNECTORS.IndexOf(connector) == 0)
1636 1547
                        {
1637 1548
                            _LMSymbolStart = GetTargetSymbol(targetSymbol, groupLine);

내보내기 Unified diff

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