개정판 14540282
dev issue #1230 : command, utill, custom fix
Change-Id: I73b680168848166eeeb682782840a39e118f0d0b
DTI_PID/APIDConverter/APIDConverterExplorer.cs | ||
---|---|---|
20 | 20 |
public APIDConverterExplorer() |
21 | 21 |
{ |
22 | 22 |
InitializeComponent(); |
23 |
|
|
24 |
Autodesk.AutoCAD.Interop.AcadApplication acadApplication = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication as Autodesk.AutoCAD.Interop.AcadApplication; |
|
25 |
Autodesk.AutoCAD.Interop._DAcadApplicationEvents_NewDrawingEventHandler handler = new Autodesk.AutoCAD.Interop._DAcadApplicationEvents_NewDrawingEventHandler(CommandEnded); |
|
26 |
acadApplication.NewDrawing += handler; |
|
27 |
} |
|
28 |
public static void CommandEnded() |
|
29 |
{ |
|
30 |
|
|
23 | 31 |
} |
24 | 32 |
|
25 | 33 |
private void btnOpenConverter_Click(object sender, EventArgs e) |
... | ... | |
27 | 35 |
APIDConverter form = new APIDConverter(); |
28 | 36 |
if (AcadApp.ShowModalDialog(form) == DialogResult.OK) |
29 | 37 |
{ |
30 |
|
|
38 |
foreach (var item in form.Documents) |
|
39 |
{ |
|
40 |
AutoModeling autoModeling = new AutoModeling(item); |
|
41 |
autoModeling.Run(); |
|
42 |
} |
|
31 | 43 |
} |
32 | 44 |
} |
33 | 45 |
} |
내보내기 Unified diff