void hide the same color () { UF_initialize (); // radio Object dialog box char prompt [] = "Select objects to hide all objects of the same color objects" dialog box title [] = "radio objects with hidden color", msg [256]; int choice = UF_UI_SEL_SCOPE_WORK_PART, in response, color_number, number_conse = 0; tag_t Object_tag, view Tag; UF_OBJ_disp_props_t disp_props0; Double adCursor [. 3]; UF_UI_select_with_single_dialog (prompt, dialog title, choice, NULL, NULL, & response, & Object_tag, adCursor, & views Tag); IF (Object_tag = NULL_TAG)! { UF_OBJ_ask_display_properties (Object_tag, & disp_props0); color_number = disp_props0.color; } the else { uc1601 ( "not choose how objects",. 1); return; } UF_DISP_set_highlight (Object_tag, 0); NextTag = NULL_TAG tag_t; UF_OBJ_disp_props_t disp_props; do { NextTag = UF_OBJ_cycle_all (UF_PART_ask_display_part (), NextTag); // traversing all objects working member Logical isDisplayable; UF_OBJ_is_displayable (NextTag, & isDisplayable); // Get the object displayed in the interface NX if ( to true == isDisplayable) { UF_OBJ_ask_display_properties (NextTag, & disp_props); // get the object display attribute IF (disp_props.blank_status == == UF_OBJ_NOT_BLANKED && disp_props.color color_number) { number_conse ++; UF_OBJ_set_blank_status (NextTag, UF_OBJ_BLANKED); // hides the same color objects } } } the while (NextTag = NULL_TAG!); sprintf (MSG, "! *% d hidden object *", number_conse); uc1601 (MSG,. 1); // UF_LAYER_set_all_but_work (. 4); //UF_LAYER_set_status(1, 1); //UF_LAYER_set_status(10, 2); UF_terminate(); }