개정판 021176df
dev issue #000 : edit
Change-Id: I231b6556b32b46614896bd2da382718c5434b5c5
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
43 | 43 |
{ |
44 | 44 |
_placement = new Placement(); |
45 | 45 |
dataSource = _placement.PIDDataSource; |
46 |
//dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
|
|
47 |
//dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName);
|
|
48 |
//application.ActiveWindow.Fit();
|
|
49 |
//Thread.Sleep(100);
|
|
50 |
//application.ActiveWindow.Zoom = 60;
|
|
51 |
//Thread.Sleep(100);
|
|
46 |
dynamic application = Interaction.GetObject("", "PIDAutomation.Application"); |
|
47 |
dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName); |
|
48 |
application.ActiveWindow.Fit(); |
|
49 |
Thread.Sleep(100); |
|
50 |
application.ActiveWindow.Zoom = 60; |
|
51 |
Thread.Sleep(100); |
|
52 | 52 |
|
53 | 53 |
|
54 | 54 |
try |
55 | 55 |
{ |
56 | 56 |
// Equipment Modeling |
57 | 57 |
foreach (Equipment equipment in document.Equipments) |
58 |
{ |
|
59 | 58 |
EquipmentModeling(equipment); |
60 |
} |
|
61 |
|
|
62 | 59 |
|
63 | 60 |
// LineRun Symbol Modeling |
64 | 61 |
foreach (LineNumber lineNumber in document.LINENUMBERS) |
... | ... | |
196 | 193 |
//System.Windows.Forms.MessageBox.Show("end"); |
197 | 194 |
} |
198 | 195 |
|
199 |
public void Test() |
|
200 |
{ |
|
201 |
_placement = new Placement(); |
|
202 |
dataSource = _placement.PIDDataSource; |
|
203 |
|
|
204 |
DependencyObject drawingObject = radApp.ActiveDocument.SelectSet[0] as DependencyObject; |
|
205 |
if (drawingObject != null) |
|
206 |
{ |
|
207 |
string modelitemID = drawingObject.AttributeSets[0][5].GetValue().ToString(); |
|
208 |
radApp.ActiveDocument.SelectSet.RemoveAll(); |
|
209 |
LMPipeRun run = dataSource.GetPipeRun(modelitemID); |
|
210 |
_LMAItem item = run.AsLMAItem(); |
|
211 |
string modelitemID2 = item.Id; |
|
212 |
_placement.PIDAutoJoin(item, AutoJoinEndConstants.autoJoin_Both, ref item); |
|
213 |
string afterModelItemID = item.Id; |
|
214 |
if (modelitemID2 != afterModelItemID) |
|
215 |
{ |
|
216 |
|
|
217 |
} |
|
218 |
} |
|
219 |
} |
|
220 |
|
|
221 | 196 |
private void LineModelingByRun(LineRun run) |
222 | 197 |
{ |
223 | 198 |
Line prevLine = null; |
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
523 | 523 |
|
524 | 524 |
private void btnRun_Click(object sender, EventArgs e) |
525 | 525 |
{ |
526 |
#if DEBUG |
|
527 |
this.Visible = false; |
|
528 |
|
|
529 |
//SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\11111.xml"); |
|
530 |
SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page50.xml"); |
|
531 |
//SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page49.xml"); |
|
532 |
document.SymbolMappings = symbolMappings; |
|
533 |
document.ChildSymbolMappings = childSymbolMappings; |
|
534 |
document.LineMappings = lineMappings; |
|
535 |
document.LineNumberMappings = lineNumberMappings; |
|
536 |
document.AttributeMappings = attributeMappings; |
|
537 |
document.ETCSetting = ETCSetting.GetInstance(); |
|
538 |
|
|
539 |
document.SetSPPIDInfo(); |
|
540 |
|
|
541 |
if (document.SetSPPIDMapping() && document.Enable) |
|
542 |
{ |
|
543 |
AutoModeling modeling = new AutoModeling(document, commandControl.Application.RADApplication); |
|
544 |
modeling.Run(); |
|
545 |
} |
|
546 |
|
|
547 |
this.Visible = true; |
|
548 |
return; |
|
549 |
#else |
|
550 | 526 |
_Documents.Clear(); |
551 | 527 |
|
552 | 528 |
foreach (int rowHandle in gridViewConverter.GetSelectedRows()) |
... | ... | |
564 | 540 |
_Documents.Add(document); |
565 | 541 |
} |
566 | 542 |
|
567 |
DialogResult = DialogResult.OK; |
|
568 |
#endif |
|
543 |
foreach (var document in _Documents) |
|
544 |
{ |
|
545 |
if (document.SetSPPIDMapping() && document.Enable) |
|
546 |
{ |
|
547 |
AutoModeling modeling = new AutoModeling(document, commandControl.Application.RADApplication); |
|
548 |
modeling.Run(); |
|
549 |
} |
|
550 |
} |
|
551 |
|
|
569 | 552 |
} |
570 | 553 |
|
571 | 554 |
private void btnSPPIDDB_Click(object sender, EventArgs e) |
ID2.wxs | ||
---|---|---|
3717 | 3717 |
<Component Id="cmpd947dcfcd3ad4846811fe561ce80b6d9" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="8026542a-0d0f-4802-b7bd-8681c8a7649b"> |
3718 | 3718 |
<File Id="fil81854b9c71354b5e9e68e060b9f2074b" KeyPath="yes" Source=".\Setup\SPPIDConverter.dll" /> |
3719 | 3719 |
</Component> |
3720 |
<Component Id="cmp7c384ae675d947ca81d12321cd9e9ce2" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="0e2db62b-7227-4978-a0f4-9de151c64c5d"> |
|
3721 |
<File Id="filfdb85c39e3364149a1dae95ea109f874" KeyPath="yes" Source=".\Setup\BaseModel.dll" /> |
|
3722 |
</Component> |
|
3723 |
<Component Id="cmpb0f18af5beea4c0b9d697006a5dfed8c" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="eda18c1a-9e34-4483-b7d9-ac56cfadf77f"> |
|
3724 |
<File Id="fil3d250461968a4ed2a8f01f8e15b190cd" KeyPath="yes" Source=".\Setup\DevExpress.Data.v18.2.dll" /> |
|
3725 |
</Component> |
|
3726 |
<Component Id="cmpfc8dd44948f84275a716e54939cf2bcc" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="ffb9eec9-f9dc-46aa-a1c8-e4fcd3d8da2d"> |
|
3727 |
<File Id="filc1f3ffe4c92540dab4f55b6b3569cf13" KeyPath="yes" Source=".\Setup\DevExpress.Dialogs.v18.2.Core.dll" /> |
|
3728 |
</Component> |
|
3729 |
<Component Id="cmp9ade784107c34bbf8e785bcea86a51d8" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="46329d51-ae2b-4654-965a-a5f52de035c2"> |
|
3730 |
<File Id="fil337f757a1ebb440fa18eeeab2537f51c" KeyPath="yes" Source=".\Setup\DevExpress.Images.v18.2.dll" /> |
|
3731 |
</Component> |
|
3732 |
<Component Id="cmp0c9e788dae074744b289cb8867fc0e80" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="a32136f2-062b-4698-b55d-9ba0e5e71bbc"> |
|
3733 |
<File Id="filca33c37c1eb54828a18349da78c1f1ed" KeyPath="yes" Source=".\Setup\DevExpress.Printing.v18.2.Core.dll" /> |
|
3734 |
</Component> |
|
3735 |
<Component Id="cmpb082a3bd9c7f4dbfbf40fe297ebb723b" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="7b1ee306-2b09-4cce-9bbb-b55f963ee84c"> |
|
3736 |
<File Id="filc1e660ced58e4838a97e81a948d017a6" KeyPath="yes" Source=".\Setup\DevExpress.RichEdit.v18.2.Core.dll" /> |
|
3737 |
</Component> |
|
3738 |
<Component Id="cmp49c49810e4d94183b990fe7a14eddd7c" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="63b65614-60be-4c7c-bf8c-e5457b123211"> |
|
3739 |
<File Id="fil42e31eea5bd746dd97785526b6062978" KeyPath="yes" Source=".\Setup\DevExpress.Sparkline.v18.2.Core.dll" /> |
|
3740 |
</Component> |
|
3741 |
<Component Id="cmp3b46cf44de784ce184321e128cf02ece" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="40a1022c-b9b9-40a3-a72e-63f4697629c5"> |
|
3742 |
<File Id="filafc9e9d886694caca8819bfa9e08038e" KeyPath="yes" Source=".\Setup\DevExpress.Utils.v18.2.dll" /> |
|
3743 |
</Component> |
|
3744 |
<Component Id="cmp6b6c6ef256fe4307a1f3bcbe77556442" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="b962d4fd-43b8-4165-9c15-aa5c524139ba"> |
|
3745 |
<File Id="filca52c344e3754e789b8312c97077c5c3" KeyPath="yes" Source=".\Setup\DevExpress.XtraBars.v18.2.dll" /> |
|
3746 |
</Component> |
|
3747 |
<Component Id="cmp45973d273af1421688eb9761d9fdc1b3" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="d38783e9-c2d5-40a6-b108-b5ba4182c3b1"> |
|
3748 |
<File Id="fil9d55d466b08d42a3868438549a1ce41c" KeyPath="yes" Source=".\Setup\DevExpress.XtraDialogs.v18.2.dll" /> |
|
3749 |
</Component> |
|
3750 |
<Component Id="cmp3b54e090cba84d27846636c247cbd73f" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="ee63b56d-c8c9-49a1-b2d1-05d1bfeb4ade"> |
|
3751 |
<File Id="fil0f7e294ad1a045eba3ce25dc5de67bc7" KeyPath="yes" Source=".\Setup\DevExpress.XtraEditors.v18.2.dll" /> |
|
3752 |
</Component> |
|
3753 |
<Component Id="cmpededd30d9213415d9d2d874cdc906f4d" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="cc64c600-ab65-41cd-9f8a-08638115cdd0"> |
|
3754 |
<File Id="fil06f7fbdc97654c9c9ad42983e205ea92" KeyPath="yes" Source=".\Setup\DevExpress.XtraGrid.v18.2.dll" /> |
|
3755 |
</Component> |
|
3756 |
<Component Id="cmpacdaac95c093422080a80516b743a2f1" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="fb11738e-deb4-4b1d-b074-557cb1e68c01"> |
|
3757 |
<File Id="fil1ab312bf3c7646faaaf5d4afb0cc72e3" KeyPath="yes" Source=".\Setup\DevExpress.XtraLayout.v18.2.dll" /> |
|
3758 |
</Component> |
|
3759 |
<Component Id="cmp0a8dd0991fb749fa8855367e306f66b4" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="1d73d0c8-5659-4b3b-b793-4e7bae93e9c1"> |
|
3760 |
<File Id="filb13a5b2470d44ad799840fc074c06bcf" KeyPath="yes" Source=".\Setup\DevExpress.XtraPrinting.v18.2.dll" /> |
|
3761 |
</Component> |
|
3762 |
<Component Id="cmpdbe57bf91e794a6c8c0e5d23a16d383a" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="3a0d08d8-fd15-476e-9abc-b2268da75cc3"> |
|
3763 |
<File Id="fil4ca70f6a689e437f994e75e7aced92cd" KeyPath="yes" Source=".\Setup\DevExpress.XtraTreeList.v18.2.dll" /> |
|
3764 |
</Component> |
|
3765 |
<Component Id="cmp05ee1fef7c4540dfac00137be1a34024" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="5345e4ce-3d70-42aa-a227-a8612a8e7cf9"> |
|
3766 |
<File Id="fild6052a08f7e142a2b754840f45f7ff06" KeyPath="yes" Source=".\Setup\Oracle.ManagedDataAccess.dll" /> |
|
3767 |
</Component> |
|
3768 |
<Component Id="cmp3fd818fef0c94e79b70a8bfd4216e5e1" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="915e5e36-f50d-475c-8052-1d4405834edf"> |
|
3769 |
<File Id="fil2d092ef8be324b7391c24e2278018e38" KeyPath="yes" Source=".\Setup\System.Data.SQLite.dll" /> |
|
3770 |
</Component> |
|
3771 |
<Component Id="cmp33fc98f768ff4867aaeccbf8a53edbc4" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="ccffc192-8624-46dc-9b72-c0c5f41f0b79"> |
|
3772 |
<File Id="fil97b7e1ff311e4908b00786eb51ba88c3" KeyPath="yes" Source=".\Setup\System.Data.SQLite.EF6.dll" /> |
|
3773 |
</Component> |
|
3774 |
<Component Id="cmp0665fca33b02482e920e2f72edd3d8a8" Directory="dir29f34f29d6b749908abd3a0ac0890c11" Guid="6b1b5e86-e680-4b41-99f2-db7d62d830dc"> |
|
3775 |
<File Id="fil578d74cc5e9f4e1baeb376a26ea9e8a8" KeyPath="yes" Source=".\Setup\System.Data.SQLite.Linq.dll" /> |
|
3776 |
</Component> |
|
3777 |
|
|
3720 | 3778 |
</ComponentGroup> |
3721 | 3779 |
</Fragment> |
3722 | 3780 |
<Fragment> |
내보내기 Unified diff