개정판 24c3d08a
dev issue #000 : 임시
Change-Id: I19375857470afaa6f3a93574a66d4d90cdd6b057
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
86 | 86 |
/// </summary> |
87 | 87 |
public void Run() |
88 | 88 |
{ |
89 |
string drawingNumber = document.DrawingNumber; |
|
90 |
string drawingName = document.DrawingName; |
|
89 |
//string drawingNumber = document.DrawingNumber;
|
|
90 |
//string drawingName = document.DrawingName;
|
|
91 | 91 |
try |
92 | 92 |
{ |
93 | 93 |
nominalDiameterTable = Project_DB.SelectProjectNominalDiameter(); |
94 | 94 |
_placement = new Placement(); |
95 | 95 |
dataSource = _placement.PIDDataSource; |
96 |
|
|
97 |
if (CreateDocument(ref drawingNumber, ref drawingName) && DocumentCoordinateCorrection()) |
|
96 |
|
|
97 |
//if (CreateDocument(ref drawingNumber, ref drawingName) && DocumentCoordinateCorrection()) |
|
98 |
if (DocumentCoordinateCorrection()) |
|
98 | 99 |
{ |
99 | 100 |
Log.Write("Start Modeling"); |
100 | 101 |
SplashScreenManager.ShowForm(typeof(SPPIDSplashScreen), true, true); |
... | ... | |
160 | 161 |
} |
161 | 162 |
finally |
162 | 163 |
{ |
163 |
Project_DB.InsertDrawingInfoAndOPCInfo(document.PATH, drawingNumber, drawingName, document); |
|
164 |
//Project_DB.InsertDrawingInfoAndOPCInfo(document.PATH, drawingNumber, drawingName, document);
|
|
164 | 165 |
//Project_DB.InsertLineNumberInfo(document.PATH, drawingNumber, drawingName, document); |
165 | 166 |
|
166 | 167 |
if (SplashScreenManager.Default != null && SplashScreenManager.Default.IsSplashFormVisible) |
... | ... | |
178 | 179 |
application = null; |
179 | 180 |
if (radApp.ActiveDocument != null) |
180 | 181 |
{ |
181 |
if (closeDocument && newDrawing != null) |
|
182 |
{ |
|
183 |
newDrawing.Save(); |
|
184 |
newDrawing.CloseDrawing(true); |
|
185 |
ReleaseCOMObjects(newDrawing); |
|
186 |
newDrawing = null; |
|
187 |
} |
|
188 |
else if (newDrawing == null) |
|
189 |
{ |
|
190 |
Log.Write("error document"); |
|
191 |
} |
|
182 |
//if (closeDocument && newDrawing != null)
|
|
183 |
//{
|
|
184 |
// newDrawing.Save();
|
|
185 |
// newDrawing.CloseDrawing(true);
|
|
186 |
// ReleaseCOMObjects(newDrawing);
|
|
187 |
// newDrawing = null;
|
|
188 |
//}
|
|
189 |
//else if (newDrawing == null)
|
|
190 |
//{
|
|
191 |
// Log.Write("error document");
|
|
192 |
//}
|
|
192 | 193 |
} |
193 | 194 |
|
194 | 195 |
ReleaseCOMObjects(dataSource); |
내보내기 Unified diff