importcadwork# import moduleimportendtype_controllerasetcimportelement_controllerasecimportutility_controllerasucelement_ids=ec.get_active_identifiable_element_ids()new_endtype=uc.get_user_string("name of the new end-type")i=0forelement_idinelement_ids:endtype_name=etc.get_endtype_name_start(element_id)ifendtype_name=="V_8":# V_8 = name of an endtpyeetc.set_endtype_name_start(element_id,new_endtype)i+=1uc.print_error("Number of end-type replaced:%d"%i)