프로젝트

일반

사용자정보

개정판 dfac4553

IDdfac45532daa8ecdff4b4e14615609a92af19ca8
상위 63fbf592
하위 43619a9b, acfaba11, d23fe61b

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

dev issue #000 : Join run (분리형 Line)

Change-Id: I946e42e64fc3c4b0a2453283fa37843e5485820b

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
108 108
                    // SpecBreak Modeling
109 109
                    RunSpecBreakModeling();
110 110

  
111
                    // Join
112
                    RunJoinRunForSameConnector();
113

  
111 114
                    //// LineNumber Modeling
112 115
                    //RunLineNumberModeling();
113 116

  
......
618 621
                    Log.Write(ex.StackTrace);
619 622
                }
620 623
        }
624
        private void RunJoinRunForSameConnector()
625
        {
626
            SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "PipeRun Join");
627
            foreach (var line in document.LINES)
628
            {
629
                if (!SPPIDUtil.IsSegmentLine(document, line))
630
                {
631
                    foreach (var connector in line.CONNECTORS)
632
                    {
633
                        if (connector.ConnectedObject != null &&
634
                            connector.ConnectedObject.GetType() == typeof(Line) &&
635
                            !SPPIDUtil.IsBranchLine(line, connector.ConnectedObject as Line) &&
636
                            !SPPIDUtil.IsSegmentLine(document, connector.ConnectedObject as Line)) 
637
                        {
638
                            Line connLine = connector.ConnectedObject as Line;
639
                            if (line.SPPID.ModelItemId != connLine.SPPID.ModelItemId)
640
                                JoinPipeRun(connLine.SPPID.ModelItemId, line.SPPID.ModelItemId);
641
                        }
642
                    }
643
                }
644
            }
645
        }
621 646

  
622 647
        private void RunLineNumberModeling()
623 648
        {

내보내기 Unified diff

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