//举个例子,手动选择一个操作工序,获得转速,然后把转速填在控件里。
void AS::dialogShown_cb()
{
try
{
//---- Enter your callback code here -----
int count = 0;
tag_t* objects = NULL_TAG;
UF_UI_ONT_ask_selected_nodes(&count, &objects);
for (int i = 0; i < count; i++)
{
tag_t operTag = objects[i];
double s;
//设置转数
UF_PARAM_ask_double_value(operTag, UF_PARAM_SPINDLE_RPM, &s);
char msg[256];
sprintf(msg,"%f",s);
string0->GetProperties()->SetString("Value", msg);//设置字符串
}
}