개정판 dfac4553
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