프로젝트

일반

사용자정보

개정판 3fdf052a

ID3fdf052a8f0488af5a37564a28265d91987b58db
상위 d77973b3
하위 b87d152e

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

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

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