프로젝트

일반

사용자정보

개정판 d4c3e39f

IDd4c3e39f8d9a6a3b29d6a73203b3f57d454a4ca0
상위 be7159c9
하위 d4223fa3

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

dev issue #1176 : ValidationCheck 추가

Change-Id: I592a9901417561e2d92aa6ace7719226134ff167

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
234 234
                {
235 235
                    SortBranchLines();
236 236
                    Line item = BranchLines[0];
237
                    if (EnableBranchModeling(item))
238
                    {
239
                        NewLineModeling(item, true);
240
                        SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.UpProgress, null);
241
                    }
242
                    else
243
                        throw new Exception("Fail Branch Modeling");
237
                    NewLineModeling(item, true);
238
                    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.UpProgress, null);
244 239
                }
245 240
                catch (Exception ex)
246 241
                {
......
250 245
                    Log.Write(ex.StackTrace);
251 246
                    break;
252 247
                }
253

  
254
                bool EnableBranchModeling(Line line)
255
                {
256
                    bool result = true;
257
                    if (line.CONNECTORS.FindAll(x => x.ConnectedObject != null &&
258
                    x.ConnectedObject.GetType() == typeof(Line) &&
259
                    string.IsNullOrEmpty(((Line)x.ConnectedObject).SPPID.ModelItemId)).Count > 0)
260
                        result = false;
261

  
262
                    return result;
263
                }
264 248
            }
265 249

  
266 250
            SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllProgress, stepLast_Line.Count);
......
739 723
            newDrawing = application.Drawings.Add(document.Unit, document.Template, drawingNumber, drawingName);
740 724
            document.SPPID_DrawingNumber = drawingNumber;
741 725
            document.SPPID_DrawingName = drawingName;
726
            Thread.Sleep(1000);
742 727
            application.ActiveWindow.Fit();
743 728
            Thread.Sleep(1000);
744 729
            application.ActiveWindow.Zoom = 2000;

내보내기 Unified diff

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