设置选择范围:整个装配
void focusNotify_cb(NXOpen::BlockStyler::UIBlock* block, bool focus)
{
try
{
if(block == edgeCircle || block == edgeSelect ||block == faceSelect || block == vector0 ||block == edgeSelectMiddle1 || block == edgeSelectMiddle2)
{
char LibDir[256]="libugui.dll";
typedef void(* load_ufusr_f_p_t)(int indx);
load_ufusr_f_p_t set_default_scope=NULL;
int error=UF_load_library(LibDir,"?SEL_set_default_scope@@YAXH@Z",(UF_load_f_p_t *)&set_default_scope);
if(set_default_scope!=NULL)
{
set_default_scope(3);
set_default_scope(3);
}
}
}
catch(exception& ex)
{
//---- Enter your exception handling code here -----
theUI->NXMessageBox()->Show("Block Styler", NXOpen::NXMessageBox::DialogTypeError, ex.what());
}
}