|
楼主 |
发表于 2016-8-13 19:29:36
|
显示全部楼层
int FACE_COLOR_action_0_act_cb ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
int num_faces=0;
int kk=0;
tag_t *faces=NULL_TAG;
num_faces=select_faces("Select faces",&faces);
if(num_faces==1)
{
for (kk=0;kk<num_faces;kk++)
{
UF_OBJ_set_color(faces[kk],color_code[0]);
}
}
if(num_faces<1) return;
if(num_faces>1)
uc1601("基准面只能选择一个",1);
return (UF_UI_CB_CONTINUE_DIALOG);
}
我用以上代码运行的时候,UG会弹出Dialog area 2 is not currently available
静静地等大神回复 |
|