개정판 5e6ecf05
dev issue #000 : branch target 구하는 로직 추가(보안 필요)
Change-Id: Iac4e63f4c2cdbee58c5b7489b7d46e91c5cae942
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
67 | 67 |
/// <param name="e">Arguments passed during event</param> |
68 | 68 |
private void commandControl_Activate(object sender, EventArgs e) |
69 | 69 |
{ |
70 |
if (ShowDialog() == DialogResult.OK) |
|
71 |
{ |
|
72 |
|
|
73 |
} |
|
70 |
Show(); |
|
71 |
//if (ShowDialog() == DialogResult.OK) |
|
72 |
//{ |
|
74 | 73 |
|
75 |
foreach (var item in commandControl.Application.RADApplication.ActiveSelectSet) |
|
76 |
{ |
|
77 |
//MessageBox.Show(item.GetType()); |
|
78 |
int count = ((Ingr.RAD2D.LineStringGeometry2d)((Ingr.RAD2D.DependencyObject)item).GetGeometry()).VertexCount; |
|
79 |
double[] iii = null; |
|
80 |
((Ingr.RAD2D.LineStringGeometry2d)((Ingr.RAD2D.DependencyObject)item).GetGeometry()).GetVertices(ref count, ref iii); |
|
81 |
for (int i = 0; i < count; i++) |
|
82 |
{ |
|
83 |
double x = 0; |
|
84 |
double y = 0; |
|
85 |
((Ingr.RAD2D.LineStringGeometry2d)((Ingr.RAD2D.DependencyObject)item).GetGeometry()).GetVertex(i + 1, ref x, ref y); |
|
74 |
//} |
|
86 | 75 |
|
87 |
} |
|
88 |
Ingr.RAD2D.Symbol2d symbol2D; |
|
89 |
//symbol2D.Move |
|
90 |
} |
|
76 |
//foreach (var item in commandControl.Application.RADApplication.ActiveSelectSet) |
|
77 |
//{ |
|
78 |
// //MessageBox.Show(item.GetType()); |
|
79 |
// int count = ((Ingr.RAD2D.LineStringGeometry2d)((Ingr.RAD2D.DependencyObject)item).GetGeometry()).VertexCount; |
|
80 |
// double[] iii = null; |
|
81 |
// ((Ingr.RAD2D.LineStringGeometry2d)((Ingr.RAD2D.DependencyObject)item).GetGeometry()).GetVertices(ref count, ref iii); |
|
82 |
// for (int i = 0; i < count; i++) |
|
83 |
// { |
|
84 |
// double x = 0; |
|
85 |
// double y = 0; |
|
86 |
// ((Ingr.RAD2D.LineStringGeometry2d)((Ingr.RAD2D.DependencyObject)item).GetGeometry()).GetVertex(i + 1, ref x, ref y); |
|
87 |
|
|
88 |
// } |
|
89 |
// Ingr.RAD2D.Symbol2d symbol2D; |
|
90 |
// //symbol2D.Move |
|
91 |
//} |
|
91 | 92 |
|
92 | 93 |
//commandControl.Application.RADApplication.Interactive = true; |
93 | 94 |
//Hide(); |
... | ... | |
526 | 527 |
|
527 | 528 |
if (document.SetSPPIDMapping() && document.Enable) |
528 | 529 |
{ |
529 |
AutoModeling modeling = new AutoModeling(document); |
|
530 |
AutoModeling modeling = new AutoModeling(document, commandControl.Application.RADApplication);
|
|
530 | 531 |
modeling.Run(); |
531 | 532 |
} |
532 | 533 |
|
내보내기 Unified diff