개정판 3fdf052a
dev issue #1174 : Check Flow Direction 후 Line Join
Change-Id: If853ce5a908a20955672d463c08a40078ec1063d
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
2211 | 2211 |
double y = 0; |
2212 | 2212 |
lineStringGeometry.GetVertex(1, ref x, ref y); |
2213 | 2213 |
|
2214 |
placeRunInputs.AddSymbolTarget(connector.ConnectItem1SymbolObject, x, y); |
|
2215 |
placeRunInputs.AddSymbolTarget(connector.ConnectItem2SymbolObject, x, y); |
|
2216 |
|
|
2217 | 2214 |
string flowDirection = string.Empty; |
2218 | 2215 |
LMAAttribute flowAttribute = connector.ModelItemObject.Attributes["FlowDirection"]; |
2219 | 2216 |
if (flowAttribute != null && !DBNull.Value.Equals(flowAttribute.get_Value())) |
2220 | 2217 |
flowDirection = flowAttribute.get_Value().ToString(); |
2221 | 2218 |
|
2219 |
if (flowDirection == "End 1 is downstream (Outlet)") |
|
2220 |
{ |
|
2221 |
placeRunInputs.AddSymbolTarget(connector.ConnectItem2SymbolObject, x, y); |
|
2222 |
placeRunInputs.AddSymbolTarget(connector.ConnectItem1SymbolObject, x, y); |
|
2223 |
flowDirection = "End 1 is upstream (Inlet)"; |
|
2224 |
} |
|
2225 |
else |
|
2226 |
{ |
|
2227 |
placeRunInputs.AddSymbolTarget(connector.ConnectItem1SymbolObject, x, y); |
|
2228 |
placeRunInputs.AddSymbolTarget(connector.ConnectItem2SymbolObject, x, y); |
|
2229 |
} |
|
2230 |
|
|
2222 | 2231 |
_placement.PIDRemovePlacement(connector.AsLMRepresentation()); |
2223 | 2232 |
newConnector = _placement.PIDPlaceRun(_LMAItem, placeRunInputs); |
2224 | 2233 |
ZeroLengthSymbolToSymbolModelItemID.Add(newConnector.ModelItemID); |
내보내기 Unified diff