개정판 bccacd6c
dev issue #507 : 순서 변경
Change-Id: I5b60b60b6cf432789c9a0a08566c2922581c8f65
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
80 | 80 |
string drawingName = document.DrawingName; |
81 | 81 |
try |
82 | 82 |
{ |
83 |
_placement = new Placement(); |
|
84 |
dataSource = _placement.PIDDataSource; |
|
85 |
|
|
83 | 86 |
if (CreateDocument(ref drawingNumber, ref drawingName) && DocumentCoordinateCorrection()) |
84 | 87 |
{ |
85 | 88 |
Log.Write("Start Modeling"); |
... | ... | |
761 | 764 |
radApp.ActiveWindow.Zoom = 2000; |
762 | 765 |
Thread.Sleep(2000); |
763 | 766 |
|
764 |
_placement = new Placement(); |
|
765 |
dataSource = _placement.PIDDataSource; |
|
766 |
|
|
767 | 767 |
//current LMDrawing 가져오기 |
768 | 768 |
LMAFilter filter = new LMAFilter(); |
769 | 769 |
LMACriterion criterion = new LMACriterion(); |
... | ... | |
800 | 800 |
/// <param name="drawingNumber"></param> |
801 | 801 |
private void GetDrawingNameAndNumber(ref string drawingName, ref string drawingNumber) |
802 | 802 |
{ |
803 |
LMADataSource dataSource = new LMADataSource(); |
|
804 | 803 |
LMDrawings drawings = new LMDrawings(); |
805 | 804 |
drawings.Collect(dataSource); |
806 | 805 |
|
DTI_PID/SPPIDConverter/ConverterDocking.cs | ||
---|---|---|
74 | 74 |
SPPID_Document document = converterForm.Documents[i]; |
75 | 75 |
if (document.SetSPPIDMapping() && document.Enable) |
76 | 76 |
{ |
77 |
dynamic application = Interaction.GetObject("", "PIDAutomation.Application"); |
|
78 |
WrapperApplication wApp = new WrapperApplication(application.Application); |
|
79 |
Ingr.RAD2D.Application radApp = wApp.RADApplication; |
|
80 |
|
|
81 |
using (AutoModeling modeling = new AutoModeling(document, application, radApp, converterForm.checkEditCloseDocument.Checked)) |
|
77 |
using (AutoModeling modeling = new AutoModeling(document, converterForm.checkEditCloseDocument.Checked)) |
|
82 | 78 |
{ |
83 | 79 |
modeling.DocumentLabelText = string.Format("Drawing Name : {0} ({1}/{2})", document.DrawingName, i + 1, converterForm.Documents.Count); |
84 | 80 |
modeling.Run(); |
85 | 81 |
} |
86 |
ReleaseCOMObjects(application); |
|
87 | 82 |
} |
88 | 83 |
} |
89 | 84 |
} |
내보내기 Unified diff