/* This example sets the reference set for all the components in an assembly to be the SOLID reference set. */ #include #include /*---------------------------------------------------------------*/ /*ARGSUSED*/ extern void ufusr(char *def, int *ret_code, int retlen) { tag_t displayed_part = NULL_TAG; UF_initialize(); displayed_part = UF_PART_ask_display_part(); if (displayed_part != NULL_TAG) { tag_t cset; UF_ASSEM_ask_all_comp_cset(displayed_part, &cset); if (cset != NULL_TAG) { UF_ASSEM_set_ref_set_by_cset(cset, "SOLID"); } } UF_terminate(); }