프로젝트

일반

사용자정보

개정판 de97eaaa

IDde97eaaa04dfe7e78b0182a0d32fc0657caf714b
상위 1ab9a205
하위 b8109b41

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

dev issue #000 : minor fix

Change-Id: Ie48212b48cae824d283ecccf293d63a98dcca0c3

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
1654 1654
        /// <param name="targetLMConnector"></param>
1655 1655
        private void RetryEndBreakModeling(EndBreak endBreak, LMConnector targetLMConnector)
1656 1656
        {
1657
            string symbolPath = string.Empty;
1658
            #region get symbol path
1659
            LMModelItem modelItem = dataSource.GetModelItem(targetLMConnector.ModelItemID);
1660
            foreach (LMRepresentation rep in modelItem.Representations)
1661
            {
1662
                if (!DBNull.Value.Equals(rep.get_FileName()) && !string.IsNullOrEmpty(rep.get_FileName()))
1663
                {
1664
                    symbolPath = rep.get_FileName();
1665
                    break;
1666
                }
1667
            }
1668
            #endregion
1657 1669
            bool isZeroLength = Convert.ToBoolean(targetLMConnector.get_IsZeroLength());
1658 1670
            Array array = null;
1659 1671
            LMLabelPersist _LMLabelPersist = null;
......
1663 1675
            Ingr.RAD2D.LineStringGeometry2d lineStringGeometry = drawingObject.GetGeometry() as Ingr.RAD2D.LineStringGeometry2d;
1664 1676
            int verticesCount = lineStringGeometry.VertexCount;
1665 1677
            PlaceRunInputs placeRunInputs = new PlaceRunInputs();
1666
            _LMAItem _LMAItem = _placement.PIDCreateItem(@"\Piping\Routing\Process Lines\Primary Piping.sym");
1678
            _LMAItem _LMAItem = _placement.PIDCreateItem(symbolPath);
1667 1679

  
1668 1680
            if (isZeroLength)
1669 1681
            {
......
1747 1759

  
1748 1760
        private LMConnector ReModelingLMConnector(LMConnector connector)
1749 1761
        {
1762
            string symbolPath = string.Empty;
1763
            #region get symbol path
1764
            LMModelItem modelItem = dataSource.GetModelItem(connector.ModelItemID);
1765
            foreach (LMRepresentation rep in modelItem.Representations)
1766
            {
1767
                if (!DBNull.Value.Equals(rep.get_FileName()) && !string.IsNullOrEmpty(rep.get_FileName()))
1768
                {
1769
                    symbolPath = rep.get_FileName();
1770
                    break;
1771
                }
1772
            }
1773
            #endregion
1774

  
1750 1775
            LMConnector newConnector = null;
1751 1776
            dynamic OID = connector.get_GraphicOID();
1752 1777
            DependencyObject drawingObject = radApp.ActiveDocument.ActiveSheet.DrawingObjects[OID];
1753 1778
            Ingr.RAD2D.LineStringGeometry2d lineStringGeometry = drawingObject.GetGeometry() as Ingr.RAD2D.LineStringGeometry2d;
1754 1779
            int verticesCount = lineStringGeometry.VertexCount;
1755 1780
            PlaceRunInputs placeRunInputs = new PlaceRunInputs();
1756
            _LMAItem _LMAItem = _placement.PIDCreateItem(@"\Piping\Routing\Process Lines\Primary Piping.sym");
1781
            _LMAItem _LMAItem = _placement.PIDCreateItem(symbolPath);
1757 1782

  
1758 1783
            if (Convert.ToBoolean(connector.get_IsZeroLength()))
1759 1784
            {

내보내기 Unified diff

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