개정판 fb383ee9
Fix: 원본 CAD 도면을 열때 AVEVA P&ID와 비교 검사를 하여 Text 불일치 검사 수행
Change-Id: I36203186c931d8d9fb9bc9fca7b029beeda3c84d
ID2.Manager/ID2.Manager.Compare/Controls/Verification.cs | ||
---|---|---|
8 | 8 |
using System.ComponentModel.Design; |
9 | 9 |
using System.Data; |
10 | 10 |
using System.Drawing; |
11 |
using System.Globalization; |
|
11 | 12 |
using System.IO; |
12 | 13 |
using System.Linq; |
13 | 14 |
using System.Runtime.InteropServices; |
... | ... | |
476 | 477 |
{ |
477 | 478 |
var TextInfoColl = new List<TextInfo>(); |
478 | 479 |
var TextColl = designAutoCAD.Entities.OfType<devDept.Eyeshot.Entities.Text>().ToList(); |
480 |
var AVEVATextColl = this.designAVEVA.Entities.OfType<devDept.Eyeshot.Entities.Text>().ToList(); |
|
479 | 481 |
foreach (var text in TextColl) |
480 | 482 |
{ |
481 |
TextInfoColl.Add(new TextInfo(Math.Round(text.InsertionPoint.X, 5), Math.Round(text.InsertionPoint.Y, 5), text.TextString)); |
|
483 |
var textInfo = new TextInfo( |
|
484 |
Math.Round(text.InsertionPoint.X, 5), |
|
485 |
Math.Round(text.InsertionPoint.Y, 5), |
|
486 |
text.TextString); |
|
487 |
|
|
488 |
#region AVEVA P&ID에서 주어진 텍스트를 찾음 |
|
489 |
var found = AVEVATextColl.Find(x => textInfo.DoesEquals(x, Tolerance)); |
|
490 |
textInfo.Found = found != null; |
|
491 |
TextInfoColl.Add(textInfo); |
|
492 |
#endregion |
|
482 | 493 |
} |
483 | 494 |
OnCompareComplete(TextInfoColl); |
484 | 495 |
} |
내보내기 Unified diff