示例#1
0
 //Pick한 점이 포함하는 객체를 Capture를 통해서 Handle값을 얻어내는 기능.
 public KcsElementHandle[] DetermineCapture(int sel)
 {
     KcsElementHandle[] temp = new KcsElementHandle[] { };
     if (sel == 0)
     {
         temp = kcs_draft.ViewCapture(region);
     }
     else if (sel == 1)
     {
         temp = kcs_draft.SubviewCapture(region);
     }
     else if (sel == 2)
     {
         temp = kcs_draft.ComponentCapture(region);
     }
     else if (sel == 3)
     {
         temp = kcs_draft.ModelCapture(region);
     }
     else if (sel == 4)
     {
         temp = kcs_draft.DimCapture(region);
     }
     else if (sel == 5)
     {
         temp = kcs_draft.NoteCapture(region);
     }
     else if (sel == 6)
     {
         temp = kcs_draft.PosnoCapture(region);
     }
     else if (sel == 7)
     {
         temp = kcs_draft.HatchCapture(region);
     }
     else if (sel == 8)
     {
         temp = kcs_draft.GeometryCapture(region);
     }
     else if (sel == 9)
     {
         temp = kcs_draft.ContourCapture(region);
     }
     else if (sel == 10)
     {
         temp = kcs_draft.TextCapture(region);
     }
     else if (sel == 11)
     {
         temp = kcs_draft.SymbolCapture(region);
     }
     else
     {
         temp = kcs_draft.PointCapture(region);
     }
     return(temp);
 }