프로젝트

일반

사용자정보

개정판 8eb91130

ID8eb91130d04166fa4cc53c6d03b6d33df78f402e
상위 363cb803
하위 9b42e627

함의성이(가) 약 4년 전에 추가함

issue #000: fix text cad

Change-Id: I5daa31112fed57b14fb94d36b4f4bfc4f06f7081

차이점 보기:

DTI_PID/DTI_PID/ImportTextFromCADDialog.py
1012 1012
            text = text_node.text
1013 1013
            angle = round(float(text_node.attrib['Angle']), 2)
1014 1014

  
1015
            _height = round(float(text_node.attrib['Height'])) * scale_y
1015
            _height = round(float(text_node.attrib['Height']) * scale_y)
1016 1016
            loc[1] -= _height
1017 1017
            _width = round(_height * len(text) * self.text_scale)
1018 1018
            #_width = round(float(text_node.attrib['Width']))
DTI_PID/DTI_PID/Shapes/QEngineeringSizeTextItem.py
106 106

  
107 107
        except Exception as ex:
108 108
            from App import App 
109
            from AppDocData import MessageType
109 110
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
110 111
            App.mainWnd().addMessage.emit(MessageType.Error, message)

내보내기 Unified diff

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