프로젝트

일반

사용자정보

개정판 a2926cac

IDa2926cac0f3fb573a853cab64586b123e90838e2
상위 7158bca9
하위 e8ed2fa3

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

issue #481: add line validate condition

Change-Id: Ib7a5a69b99d1af2b50cbf7cdbde70fec4c94c538

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py
1256 1256
                            error.area = 'Drawing'
1257 1257
                            error.name = 'Error'
1258 1258
                            errors.append(error)
1259
                    
1260
                    else:
1261
                        center = connector.center()
1262
                        line = connector.connectedItem
1263

  
1264
                        configs = docdata.getConfigs('Line Detector', 'Length to connect line')
1265
                        toler = int(configs[0].value) if configs else 20
1266

  
1267
                        if line.distanceTo(center) > toler * 2:
1268
                            error = SymbolSvgItem.createItem('Error', None, dataPath)
1269
                            error.setPosition(connector.center())
1270
                            error.parent = self
1271
                            error.msg = _translate('Line Position error', 'Line Position error')
1272
                            error.setToolTip(error.msg)
1273
                            error.area = 'Drawing'
1274
                            error.name = 'Error'
1275
                            errors.append(error)
1259 1276

  
1260 1277
                errors.extend(connector.validate())
1261 1278

  

내보내기 Unified diff

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