개정판 d7341835
dev issue #000 : For GS
DTI_PID/SPPIDConverter_AutoModeling/MainControl2.cs | ||
---|---|---|
292 | 292 |
} |
293 | 293 |
|
294 | 294 |
needSymbolMapping = needSymbolMapping.Distinct().ToList(); |
295 |
needSymbolMapping.Add(SPPID.Model.Text.pipingCompSize); |
|
296 |
needSymbolMapping.Add(SPPID.Model.Text.instrumentSize); |
|
295 | 297 |
foreach (string item in needSymbolMapping) |
296 | 298 |
{ |
297 | 299 |
if (!symbolMapping.ContainsKey(item)) |
... | ... | |
403 | 405 |
dynamic newDrawing = application.Drawings.Add(sUnit, sTemplate, sDrawingNumber, sDrawingName); |
404 | 406 |
application.ActiveWindow.Fit(); |
405 | 407 |
Thread.Sleep(100); |
406 |
application.ActiveWindow.Zoom = 2000;
|
|
408 |
application.ActiveWindow.Zoom = 60;
|
|
407 | 409 |
Thread.Sleep(100); |
408 | 410 |
// |
409 |
|
|
411 |
|
|
410 | 412 |
Document document = dicDocument[gridViewConverter.GetRowCellDisplayText(rowHandle, "colUID")]; |
411 | 413 |
autoModelingThread = new Thread(Func => |
412 | 414 |
{ |
... | ... | |
428 | 430 |
gridViewConverter.SetRowCellValue(rowHandle, "colStatus", _EndProcess); |
429 | 431 |
RefreshGridViewDrawingList(); |
430 | 432 |
application.ActiveWindow.Fit(); |
431 |
Thread.Sleep(100); |
|
432 |
newDrawing.CloseDrawing(true); |
|
433 |
Thread.Sleep(100); |
|
433 |
//Thread.Sleep(100);
|
|
434 |
//newDrawing.CloseDrawing(true);
|
|
435 |
//Thread.Sleep(100);
|
|
434 | 436 |
} |
435 | 437 |
} |
436 | 438 |
catch (Exception ex) |
... | ... | |
709 | 711 |
attributeMapping.Add("SmallSize", radioGroupReducer.Properties.Items[0].Tag.ToString()); |
710 | 712 |
} |
711 | 713 |
|
712 |
symbolMapping.Add("FittingSymbolPath", textBoxFittingSymbolPath.EditValue.ToString()); |
|
714 |
if (textBoxFittingSymbolPath.EditValue != null) |
|
715 |
symbolMapping.Add("FittingSymbolPath", textBoxFittingSymbolPath.EditValue.ToString()); |
|
716 |
|
|
713 | 717 |
|
714 | 718 |
SPPIDUtill.SaveMapping(symbolMapping, attributeMapping); |
715 | 719 |
|
내보내기 Unified diff