其他分享
首页 > 其他分享> > 遍历part表达式,UF_MODL_ask_exps_of_part

遍历part表达式,UF_MODL_ask_exps_of_part

作者:互联网

//遍历part表达式 void twb_xd_std::cycle_part_exp( tag_t part_tag, std::vector<string> &part_exp ) { try { int number_of_exps = 0;//表达式数量 tag_t * exps ; UF_MODL_ask_exps_of_part ( part_tag, &number_of_exps, &exps );//返回part表达式数量与标识   char * exp_string ; for (int i = 0; i < number_of_exps; i++)//循环表达式标识,获取表达式string { UF_MODL_ask_exp_tag_string( exps[i], &exp_string );//返回表达式string part_exp.push_back( exp_string ); //UF_UI_write_listing_window(exp_string); //UF_UI_write_listing_window( "\n" ); }   UF_free( exps ); UF_free( exp_string ); } catch(exception& ex) { //---- Enter your exception handling code here ----- twb_xd_std::theUI->NXMessageBox()->Show("遍历part表达式", NXOpen::NXMessageBox::DialogTypeError, ex.what()); } }

标签:string,exps,part,exp,ask,UF,表达式
来源: https://www.cnblogs.com/nx10/p/14901983.html