개정판 442bd51e
dev issue #000 : 유저 편의성 추가
Change-Id: I7c29a8b6b077dc05d686dc77f71608c54a41ecdf
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
31 | 31 |
LMDrawing currentDrawing; |
32 | 32 |
dynamic newDrawing; |
33 | 33 |
dynamic application; |
34 |
bool closeDocument; |
|
34 | 35 |
Ingr.RAD2D.Application radApp; |
35 | 36 |
SPPID_Document document; |
36 | 37 |
ETCSetting _ETCSetting; |
... | ... | |
43 | 44 |
List<string> ZeroLengthModelItemIDReverse = new List<string>(); |
44 | 45 |
List<Symbol> prioritySymbols; |
45 | 46 |
|
46 |
public AutoModeling(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp) |
|
47 |
public AutoModeling(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp, bool closeDocument)
|
|
47 | 48 |
{ |
49 |
this.closeDocument = closeDocument; |
|
48 | 50 |
this.document = document; |
49 | 51 |
this.application = application; |
50 | 52 |
this.radApp = radApp; |
... | ... | |
142 | 144 |
|
143 | 145 |
if (radApp.ActiveDocument != null) |
144 | 146 |
{ |
145 |
radApp.ActiveDocument.Save(); |
|
147 |
newDrawing.Save(); |
|
148 |
if (closeDocument) |
|
149 |
newDrawing.CloseDrawing(true); |
|
146 | 150 |
ReleaseCOMObjects(newDrawing); |
147 | 151 |
} |
148 | 152 |
|
내보내기 Unified diff