hytos / DTI_PID / APIDConverter / APIDConverterExplorer.cs @ 570dff9c
이력 | 보기 | 이력해설 | 다운로드 (1.17 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.ComponentModel; |
4 |
using System.Drawing; |
5 |
using System.Data; |
6 |
using System.Linq; |
7 |
using System.Text; |
8 |
using System.Threading.Tasks; |
9 |
using System.Windows.Forms; |
10 |
|
11 |
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application; |
12 |
using AVEVA.PID.CustomizationUtility.DB; |
13 |
using AVEVA.PID.CustomizationUtility.Model; |
14 |
using AVEVA.PID.CustomizationUtility.Properties; |
15 |
|
16 |
namespace AVEVA.PID.CustomizationUtility |
17 |
{ |
18 |
public partial class APIDConverterExplorer : UserControl |
19 |
{ |
20 |
public APIDConverterExplorer() |
21 |
{ |
22 |
InitializeComponent(); |
23 |
} |
24 |
|
25 |
private void btnOpenConverter_Click(object sender, EventArgs e) |
26 |
{ |
27 |
APIDConverter form = new APIDConverter(); |
28 |
if (AcadApp.ShowModalDialog(form) == DialogResult.OK) |
29 |
{ |
30 |
foreach (var item in form.Documents) |
31 |
{ |
32 |
AutoModeling autoModeling = new AutoModeling(item); |
33 |
autoModeling.CreateDrawing(); |
34 |
} |
35 |
|
36 |
MessageBox.Show("End Conversion", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Information); |
37 |
} |
38 |
} |
39 |
} |
40 |
} |