프로젝트

일반

사용자정보

개정판 6b6f604f

ID6b6f604fcc64b9f5f7e4bd84bba0558b7a8a9f3c
상위 128bedc4
하위 6dc33fca

함의성이(가) 8달 전에 추가함

cad symbol regx test

Change-Id: Id03c9bafb7f94e2bd3c987402358991aa476bb6f

차이점 보기:

DTI_PID/DTI_PID/ImportTextFromCADDialog.py
12 12
from xml.etree.ElementTree import Element, SubElement, dump, ElementTree, parse
13 13
from SymbolRegiDataListDialog import QSymbolRegiDataListDialog
14 14
import uuid
15
import re
15 16
from Drawing import Drawing
16 17

  
17 18
import ImportTextFromCAD_UI
......
1565 1566
                if name in config.value.split(','):
1566 1567
                    uid = config.key
1567 1568
                    break
1569

  
1570
                for _mapping in config.value.split(','):
1571
                    match = re.search(_mapping, name, re.DOTALL)
1572
                    if match and match.start() is 0 and match.end() is len(name):
1573
                        uid = config.key
1574
                        break                
1575
                
1568 1576
            if uid:
1569 1577
                app_doc_data = AppDocData.instance()
1570 1578
                symbol = app_doc_data.getSymbolByQuery('UID', uid)

내보내기 Unified diff

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