예제 #1
0
        // Pick한 점의 선택할 Object의 유형을 결정하는 기능
        public KcsElementHandle DetermineIdentify(int sel)
        {
            KcsElementHandle temp = new KcsElementHandle();

            if (sel == 0)
            {
                temp = kcs_draft.SubviewIdentify(p1);
            }
            else if (sel == 1)
            {
                temp = kcs_draft.ComponentIdentify(p1);
            }
            else if (sel == 2)
            {
                temp = kcs_draft.DimIdentify(p1);
            }
            else if (sel == 3)
            {
                temp = kcs_draft.NoteIdentify(p1);
            }
            else if (sel == 4)
            {
                temp = kcs_draft.PosnoIdentify(p1);
            }
            else if (sel == 5)
            {
                temp = kcs_draft.HatchIdentify(p1);
            }
            else if (sel == 6)
            {
                temp = kcs_draft.GeometryIdentify(p1);
            }
            else if (sel == 7)
            {
                temp = kcs_draft.ContourIdentify(p1);
            }
            else if (sel == 8)
            {
                temp = kcs_draft.TextIdentify(p1);
            }
            else if (sel == 9)
            {
                temp = kcs_draft.SymbolIdentify(p1);
            }
            else if (sel == 10)
            {
                temp = kcs_draft.PointIdentify(p1);
            }
            return(temp);
        }