개정판 d19ae675
dev issue #000 : wrapper 제거 및 프로젝트 통합
Change-Id: I7b4c718316c9fde2508aad74af913c20de2bd798
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
27 | 27 |
{ |
28 | 28 |
Placement _placement; |
29 | 29 |
LMADataSource dataSource; |
30 |
dynamic application; |
|
30 | 31 |
Ingr.RAD2D.Application radApp; |
31 | 32 |
SPPID_Document document; |
32 | 33 |
ETCSetting _ETCSetting; |
33 | 34 |
|
34 | 35 |
List<Tuple<string, Line, Line>> BranchLines = new List<Tuple<string, Line, Line>>(); |
35 |
public AutoModeling(SPPID_Document document, Ingr.RAD2D.Application radApp) |
|
36 |
public AutoModeling(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp)
|
|
36 | 37 |
{ |
37 | 38 |
this.document = document; |
39 |
this.application = application; |
|
38 | 40 |
this.radApp = radApp; |
39 | 41 |
this._ETCSetting = ETCSetting.GetInstance(); |
40 | 42 |
} |
... | ... | |
74 | 76 |
_placement = new Placement(); |
75 | 77 |
dataSource = _placement.PIDDataSource; |
76 | 78 |
|
77 |
//dynamic application = Interaction.GetObject("", "PIDAutomation.Application"); |
|
78 |
//dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName); |
|
79 |
//application.ActiveWindow.Fit(); |
|
80 |
//Thread.Sleep(100); |
|
81 |
//application.ActiveWindow.Zoom = 60; |
|
82 |
//Thread.Sleep(100); |
|
79 |
dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName); |
|
80 |
application.ActiveWindow.Fit(); |
|
81 |
Thread.Sleep(100); |
|
82 |
application.ActiveWindow.Zoom = 60; |
|
83 |
Thread.Sleep(100); |
|
83 | 84 |
|
84 | 85 |
try |
85 | 86 |
{ |
내보내기 Unified diff