프로젝트

일반

사용자정보

개정판 a7e9beec

IDa7e9beec29f79540c0d296d109258bbc64d9a631
상위 845dc1dd
하위 7005fd1e, c833ab23, ac78b508

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

dev issue #000 : minor

Change-Id: I0250a40749573221ec2e289de9c2bcfe4bfc82ac

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
992 992
            }
993 993
        }
994 994

  
995
        private void InputLineNumberAttribute(LineNumber lineNumber)
996
        {
997
            foreach (var run in lineNumber.RUNS)
998
            {
999
                foreach (var item in run.RUNITEMS)
1000
                {
1001
                    if (item.GetType() == typeof(Line))
1002
                    {
1003
                        Line line = item as Line;
1004
                        LMPipeRun _LMPipeRun = dataSource.GetPipeRun(line.SPPID.ModelItemId);
1005
                        foreach (var attribute in lineNumber.ATTRIBUTES)
1006
                        {
1007
                            LineNumberMapping mapping = document.LineNumberMappings.Find(x => x.UID == attribute.UID);
1008
                            if (mapping != null)
1009
                            {
1010
                                LMAAttribute _LMAAttribute = _LMPipeRun.Attributes[mapping.SPPIDATTRIBUTENAME];
1011
                                if (_LMAAttribute != null)
1012
                                {
1013
                                    if (DBNull.Value.Equals(_LMAAttribute.get_Value()))
1014
                                        _LMAAttribute.set_Value(attribute.VALUE);
1015
                                    else if (_LMAAttribute.get_Value() != attribute.VALUE)
1016
                                        _LMAAttribute.set_Value(attribute.VALUE);
1017
                                }
1018
                            }
1019
                        }
1020

  
1021
                        _LMPipeRun.Commit();
1022
                        ReleaseCOMObjects(_LMPipeRun);
1023
                        break;
1024
                    }
1025
                }
1026
            }
1027
        }
1028

  
995 1029
        private void InputSymbolAttribute(Symbol symbol)
996 1030
        {
997 1031
            if (!string.IsNullOrEmpty(symbol.SPPID.RepresentationId))
......
1000 1034
                LMPipingComp _LMPipingComp = null;
1001 1035
                LMInstrument _LMInstrument = null;
1002 1036
                LMAAttributes _Attributes = null;
1037
                
1003 1038
                if (_LMSymbol.get_FileName().Contains("Instrumentation"))
1004 1039
                {
1005 1040
                    _LMInstrument = dataSource.GetInstrument(_LMSymbol.ModelItemID);
......
1049 1084
            }
1050 1085
        }
1051 1086

  
1052
        private void InputLineNumberAttribute(LineNumber lineNumber)
1053
        {
1054
            foreach (var run in lineNumber.RUNS)
1055
            {
1056
                foreach (var item in run.RUNITEMS)
1057
                {
1058
                    if (item.GetType() == typeof(Line))
1059
                    {
1060
                        Line line = item as Line;
1061
                        LMPipeRun _LMPipeRun = dataSource.GetPipeRun(line.SPPID.ModelItemId);
1062
                        foreach (var attribute in lineNumber.ATTRIBUTES)
1063
                        {
1064
                            LineNumberMapping mapping = document.LineNumberMappings.Find(x => x.UID == attribute.UID);
1065
                            if (mapping != null)
1066
                            {
1067
                                LMAAttribute _LMAAttribute = _LMPipeRun.Attributes[mapping.SPPIDATTRIBUTENAME];
1068
                                if (_LMAAttribute != null)
1069
                                {
1070
                                    if (DBNull.Value.Equals(_LMAAttribute.get_Value()))
1071
                                        _LMAAttribute.set_Value(attribute.VALUE);
1072
                                    else if (_LMAAttribute.get_Value() != attribute.VALUE)
1073
                                        _LMAAttribute.set_Value(attribute.VALUE);
1074
                                }
1075
                            }
1076
                        }
1077

  
1078
                        _LMPipeRun.Commit();
1079
                        ReleaseCOMObjects(_LMPipeRun);
1080
                        break;
1081
                    }
1082
                }
1083
            }
1084
        }
1085

  
1086 1087
        private void TextModeling(Text text)
1087 1088
        {
1088 1089
            LMSymbol _LMSymbol = null;

내보내기 Unified diff

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