개정판 0ff6e67f
dev issue #000 : minor
Change-Id: I93ff82920a8b29a3414e924c6d801c9acbb11795
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
1628 | 1628 |
if (!string.IsNullOrEmpty(targetLine.SPPID.ModelItemId)) |
1629 | 1629 |
{ |
1630 | 1630 |
LMConnector targetConnector = FindTargetLMConnectorForBranch(line, targetLine, ref x, ref y); |
1631 |
placeRunInputs.AddConnectorTarget(targetConnector, x, y, diagonal); |
|
1632 |
ChangeLineSPPIDCoordinateByConnector(groupLine, targetLine, x, y, false); |
|
1631 |
if (targetConnector == null) |
|
1632 |
{ |
|
1633 |
placeRunInputs.AddConnectorTarget(targetConnector, x, y, diagonal); |
|
1634 |
ChangeLineSPPIDCoordinateByConnector(groupLine, targetLine, x, y, false); |
|
1635 |
} |
|
1636 |
else |
|
1637 |
{ |
|
1638 |
placeRunInputs.AddPoint( x, y); |
|
1639 |
ChangeLineSPPIDCoordinateByConnector(groupLine, targetLine, x, y, false); |
|
1640 |
} |
|
1633 | 1641 |
} |
1634 | 1642 |
else |
1635 | 1643 |
{ |
... | ... | |
2725 | 2733 |
private LMConnector FindTargetLMConnectorForBranch(Line line, Line targetLine, ref double x, ref double y) |
2726 | 2734 |
{ |
2727 | 2735 |
Dictionary<LMConnector, List<double[]>> vertices = GetPipeRunVertices(targetLine.SPPID.ModelItemId); |
2736 |
if (vertices.Count == 0) |
|
2737 |
return null; |
|
2728 | 2738 |
|
2729 | 2739 |
double length = double.MaxValue; |
2730 | 2740 |
LMConnector targetConnector = null; |
내보내기 Unified diff