프로젝트

일반

사용자정보

개정판 04fcadf1

ID04fcadf171b4988d0258692c0b51824f7cb7ac35
상위 5afec47a
하위 a85990fb

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

dev issue #000 : commit 추가

Change-Id: Ib948ebfaa105613f8f7deb5d6c90c5a925895788

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
1572 1572
            LMSymbol _LMSymbol = _placement.PIDPlaceSymbol(childSymbol.SPPID.MAPPINGNAME, (x1 + x2) / 2, (y1 + y2) / 2, TargetItem: parentSymbol);
1573 1573
            if (_LMSymbol != null)
1574 1574
            {
1575
                _LMSymbol.Commit();
1575 1576
                childSymbol.SPPID.RepresentationId = _LMSymbol.AsLMRepresentation().Id;
1576 1577
                foreach (var item in childSymbol.ChildSymbols)
1577 1578
                    CreateChildSymbol(item, _LMSymbol, parent);
......
1696 1697
                LMConnector _lMConnector = _placement.PIDPlaceRun(_LMAItem, placeRunInputs);
1697 1698
                if (_lMConnector != null)
1698 1699
                {
1700
                    _lMConnector.Commit();
1699 1701
                    groupLine.SPPID.ModelItemId = _lMConnector.ModelItemID;
1700 1702
                    bool bRemodelingStart = false;
1701 1703
                    if (_LMSymbolStart != null)
......
2071 2073

  
2072 2074
            if (newConnector != null)
2073 2075
            {
2076
                newConnector.Commit();
2074 2077
                if (startSymbol != null && bStart)
2075 2078
                {
2076 2079
                    _LMAItem = _placement.PIDCreateItem(symbolPath);
......
2080 2083
                    LMConnector _LMConnector = _placement.PIDPlaceRun(_LMAItem, placeRunInputs);
2081 2084
                    if (_LMConnector != null)
2082 2085
                    {
2086
                        _LMConnector.Commit();
2083 2087
                        RemoveConnectorForReModelingLine(newConnector);
2084 2088
                        ZeroLengthModelItemID.Add(_LMConnector.ModelItemID);
2085 2089
                        ReleaseCOMObjects(_LMConnector);
......
2103 2107
                    LMConnector _LMConnector = _placement.PIDPlaceRun(_LMAItem, placeRunInputs);
2104 2108
                    if (_LMConnector != null)
2105 2109
                    {
2110
                        _LMConnector.Commit();
2106 2111
                        RemoveConnectorForReModelingLine(newConnector);
2107 2112
                        ZeroLengthModelItemIDReverse.Add(_LMConnector.ModelItemID);
2108 2113
                        ReleaseCOMObjects(_LMConnector);
......
2228 2233
                LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: true);
2229 2234
                if (_LmLabelPersist != null)
2230 2235
                {
2236
                    _LmLabelPersist.Commit();
2231 2237
                    endBreak.SPPID.RepresentationId = _LmLabelPersist.AsLMRepresentation().Id;
2232 2238
                    if (_LmLabelPersist.ModelItemObject != null)
2233 2239
                        endBreak.SPPID.ModelItemID = _LmLabelPersist.ModelItemID;
......
2288 2294

  
2289 2295
                _placement.PIDRemovePlacement(connector.AsLMRepresentation());
2290 2296
                newConnector = _placement.PIDPlaceRun(_LMAItem, placeRunInputs);
2297
                newConnector.Commit();
2291 2298
                ZeroLengthSymbolToSymbolModelItemID.Add(newConnector.ModelItemID);
2292 2299
                if (!string.IsNullOrEmpty(flowDirection))
2293 2300
                    newConnector.ModelItemObject.Attributes["FlowDirection"].set_Value(flowDirection);
......
2328 2335

  
2329 2336
                _placement.PIDRemovePlacement(connector.AsLMRepresentation());
2330 2337
                newConnector = _placement.PIDPlaceRun(_LMAItem, placeRunInputs);
2331

  
2338
                newConnector.Commit();
2332 2339
                foreach (var line in lines)
2333 2340
                    line.SPPID.ModelItemId = newConnector.ModelItemID;
2334 2341
            }
......
2369 2376

  
2370 2377
                            if (_LmLabelPersist != null)
2371 2378
                            {
2379
                                _LmLabelPersist.Commit();
2372 2380
                                specBreak.SPPID.RepresentationId = _LmLabelPersist.AsLMRepresentation().Id;
2373 2381
                                if (_LmLabelPersist.ModelItemObject != null)
2374 2382
                                    specBreak.SPPID.ModelItemID = _LmLabelPersist.ModelItemID;
......
3256 3264
                    Array array = new double[] { 0, point[0], point[1] };
3257 3265
                    LMLabelPersist _LMLabelPersist = _placement.PIDPlaceLabel(mappingPath, ref array, LabeledItem: connector.AsLMRepresentation());
3258 3266
                    if (_LMLabelPersist != null)
3267
                    {
3268
                        _LMLabelPersist.Commit();
3259 3269
                        ReleaseCOMObjects(_LMLabelPersist);
3270
                    }
3271
                        
3260 3272
                }
3261 3273
            }
3262 3274
        }

내보내기 Unified diff

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