프로젝트

일반

사용자정보

개정판 10e083ce

ID10e083ce2e3bdb6b7eb43ffd6bd99f10ba07ea78
상위 6cf04dae
하위 a2727dce

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

dev issue #507 : fix VentDrain Modeling

Change-Id: I73c12c1938d78837b325a1e59a36c92806d74ac8

차이점 보기:

DTI_PID/SPPIDConverter/BaseModel/Document.cs
1067 1067
                    }
1068 1068
                }
1069 1069

  
1070
                if (lines.Count == 1 && !SPPIDUtil.IsBranchedLine(this, lines[0]) && SPPIDUtil.IsBranchLine(lines[0]) && 
1071
                    (lines[0].SlopeType == SlopeType.HORIZONTAL || lines[0].SlopeType == SlopeType.VERTICAL))
1070
                if (lines.Count == 1 && !SPPIDUtil.IsBranchedLine(this, lines[0]) && SPPIDUtil.IsBranchLine(lines[0]))
1072 1071
                {
1073
                    foreach (var symbol in group)
1072
                    Line line = lines[0];
1073
                    double startX = 0;
1074
                    double startY = 0;
1075
                    double endX = 0;
1076
                    double endY = 0;
1077
                    SPPIDUtil.ConvertPointBystring(line.STARTPOINT, ref startX, ref startY);
1078
                    SPPIDUtil.ConvertPointBystring(line.ENDPOINT, ref endX, ref endY);
1079
                    SlopeType slopeType = SPPIDUtil.CalcSlope(startX, startY, endX, endY);
1080
                    if (slopeType == SlopeType.HORIZONTAL || slopeType == SlopeType.VERTICAL)
1074 1081
                    {
1075
                        if (!VentDrainSymbol.Contains(symbol))
1076
                            VentDrainSymbol.Add(symbol);
1082
                        foreach (var symbol in group)
1083
                        {
1084
                            if (!VentDrainSymbol.Contains(symbol))
1085
                                VentDrainSymbol.Add(symbol);
1086
                        }
1087
                        VentDrainLine.Add(lines[0]);
1077 1088
                    }
1078
                    VentDrainLine.Add(lines[0]);
1079 1089
                }
1080 1090
            }
1081 1091
        }

내보내기 Unified diff

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