개정판 ad983925
dev issue #000 : fix
Change-Id: I96d32e5a0804e36ac6fb5eca1a4e855608a77e8a
DTI_PID/APIDConverter/AutoModeling.cs | ||
---|---|---|
1040 | 1040 |
private Model.Line FindOtherLineByRun(Model.Line line, Symbol symbol) |
1041 | 1041 |
{ |
1042 | 1042 |
Model.Line result = null; |
1043 |
LineRun run = FindLineRun(line); |
|
1044 |
Connector connector = symbol.CONNECTORS.Find(x => |
|
1045 |
x.ConnectedObject != null && |
|
1046 |
x.ConnectedObject != line && |
|
1047 |
run.RUNITEMS.Contains(x.ConnectedObject) && |
|
1048 |
x.ConnectedObject.GetType() == typeof(Model.Line)); |
|
1049 |
|
|
1050 |
if (connector != null) |
|
1051 |
result = connector.ConnectedObject as Model.Line; |
|
1043 |
|
|
1044 |
try |
|
1045 |
{ |
|
1046 |
LineRun run = FindLineRun(line); |
|
1047 |
Connector connector = symbol.CONNECTORS.Find(x => |
|
1048 |
x.ConnectedObject != null && |
|
1049 |
x.ConnectedObject != line && |
|
1050 |
run.RUNITEMS.Contains(x.ConnectedObject) && |
|
1051 |
x.ConnectedObject.GetType() == typeof(Model.Line)); |
|
1052 |
|
|
1053 |
if (connector != null) |
|
1054 |
result = connector.ConnectedObject as Model.Line; |
|
1055 |
} |
|
1056 |
catch (System.Exception ex) |
|
1057 |
{ |
|
1058 |
throw new System.Exception("Error", ex); |
|
1059 |
} |
|
1052 | 1060 |
|
1053 | 1061 |
return result; |
1054 | 1062 |
} |
내보내기 Unified diff