public void Configure_Model_Information() { try { foreach (KcsElementHandle handle in handler) { try { KcsModel model = kcs_draft.ModelPropertiesGet(handle); //this can be only get model handle. to get part handle, you have to use below method. string refno = kcs_draft.ElementDbrefGet(handle); //KcsElementHandle viewhandle= kcs_draft.ViewIdentify(p1); //string viewdbref=kcs_draft.ElementPADDDbrefGet(viewhandle); KcsModel m = new KcsModel(); m.Name = "=21184/1156"; kcs_draft.ModelDraw(m); if (!models.Contains(model)) { models.Add(model); //DbElement dbelement = DbElement.GetElement(model.Name); DbElement dbelement = DbElement.GetElement(refno); dbelements.Add(dbelement); kcs_ui.MessageNoConfirm(dbelement.GetAsString(DbAttributeInstance.FLNN)); kcs_ui.MessageNoConfirm(dbelement.Members().ToArray()[model.PartId].GetAsString(DbAttributeInstance.FLNN)); } }catch (Exception ee) { kcs_ui.MessageNoConfirm("핸들을 모델로 변환중 에라 : " + handle.handle.ToString()); } } }catch (Exception ee) { } }