UG\NX二次开发 获取工作部件的所有表达式,以及值

文章作者:里海
来源网站:https://blog.csdn.net/WangPaiFeiXingYuan


简介:

获取工作部件的所有表达式,以及值。

效果:

      

代码:

#include "me.hpp"
#include <iostream>  
#include <sstream>  
#include <string>  

//double转string保留所有小数
string toString(double num)
{
	std::ostringstream oss;
	oss << num;
	return oss.str();
}
//获取工作部件的所有表达式 以及 值
vector<string> GetWorkPartExp()
{
	vector<string> expNames;
	int count = 0;
	tag_t* exps;
	UF_MODL_ask_exps_of_part(UF_ASSEM_ask_work_part(), &count, &exp

猜你喜欢

转载自blog.csdn.net/WangPaiFeiXingYuan/article/details/131783171
今日推荐