프로젝트

일반

사용자정보

개정판 1ed39474

ID1ed39474258430dd776780537f1843aeb2128e0a
상위 7dcb95df
하위 892bd8a2

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

dev issue #000 : Modeling bug fix / ZeroLength로 인한 ModelItem ID 꼬임현상 수정

Change-Id: I43efe6bdc339c07480653909266980c9db972930

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
174 174
                    foreach (var item in document.LINENUMBERS)
175 175
                        LineNumberModeling(item);
176 176

  
177
                    // LineNumber Modeling
177
                    // FlowMark Modeling
178 178
                    SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Flow Mark Modeling");
179 179
                    foreach (var item in document.LINES)
180 180
                        FlowMarkModeling(item);
......
271 271
        {
272 272
            LMDrawings drawings = new LMDrawings();
273 273
            drawings.Collect(dataSource);
274

  
274
            
275 275
            List<string> drawingNameList = new List<string>();
276 276
            List<string> drawingNumberList = new List<string>();
277 277

  
......
3087 3087

  
3088 3088
                if (connectorCount == 1)
3089 3089
                {
3090
                    LMConnector connector = dataSource.GetConnector(representationID);
3091
                    if (connector.LabelPersists.Count == 0)
3092
                        AutoJoinPipeRun(sModelID);
3093
                    ReleaseCOMObjects(connector);
3090
                    LMConnector _LMConnector = dataSource.GetConnector(representationID);
3091
                    if (_LMConnector.LabelPersists.Count == 0)
3092
                    {
3093
                        LMSymbol symbol2 = _LMConnector.ConnectItem2SymbolObject;
3094

  
3095
                        LMConnector targetLine = null;
3096
                        if (symbol2 != null && symbol2.get_RepresentationType() == "Branch")
3097
                        {
3098
                            foreach (LMConnector connector in symbol2.Connect1Connectors)
3099
                            {
3100
                                if (connector.get_ItemStatus() == "Active" && _LMConnector.Id != connector.Id)
3101
                                    targetLine = connector;
3102
                            }
3103

  
3104
                            foreach (LMConnector connector in symbol2.Connect2Connectors)
3105
                            {
3106
                                if (connector.get_ItemStatus() == "Active" && _LMConnector.Id != connector.Id)
3107
                                    targetLine = connector;
3108
                            }
3109
                        }
3110

  
3111
                        JoinPipeRun(_LMConnector.ModelItemID, targetLine.ModelItemID);
3112
                    }
3113
                        
3114
                    ReleaseCOMObjects(_LMConnector);
3094 3115
                }
3095 3116
            }
3096 3117

  

내보내기 Unified diff

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