프로젝트

일반

사용자정보

개정판 22fdbd0b

ID22fdbd0be4dd4f11ad4982fbbb39b48bde0f2577
상위 6d46bd8c
하위 592167a8

백흠경이(가) 6년 이상 전에 추가함

Add HMB table script

차이점 보기:

DTI_PID/DTI_PID/Shapes/QEngineeringTextItem.py
251 251
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
252 252

  
253 253
        return visited
254

  
255
    '''
256
        @brief      get line no attributes
257
        @author     humkyung
258
        @date       2018.04.24
259
        @history    humkyung 2018.05.09 evaluate string for Tag Seq No
260
                    kyouho 2018.07.06 add using TextItemFactory.isLineNo method
261
    '''
262
    def getLineNoAttributes(self):
263
        res = []
264

  
265
        try:
266
            docData = AppDocData.instance()
267
            configs = docData.getConfigs('Line No', 'Delimiter')
268
            delimiter = configs[0].value if 1 == len(configs) else '-'
269
            lineNoconfigs = docData.getConfigs('Line No', 'Configuration')
270
            sizeDataList = docData.getNomialPipeSizeData(True)
271
            fluidCodeList = docData.getFluidCodeData(True)
272
            configs = docData.getConfigs('Line No Tag Rule', 'Tag Seq No')
273
            tagSeqNoPattern = configs[0].value if 1 == len(configs) else None
274

  
275
            from TextItemFactory import TextItemFactory
276
            item = TextItemFactory.instance().isLineNo(self.text(), delimiter, lineNoconfigs, sizeDataList, fluidCodeList, tagSeqNoPattern)
277

  
278
            if item[0]:
279
                result = item[1]
280
                configs = lineNoconfigs[0].value.split(self.delimiter)
281
                for i in range(len(configs)):
282
                    if configs[i] == delimiter:
283
                        continue
284
                    res.append((configs[i], result[i]))
285

  
286
        except Exception as ex:
287
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
288
        
289
        return res
290

  
254
    
291 255
    '''
292 256
        @brief      generate xml code
293 257
        @author     humkyung

내보내기 Unified diff

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