02 2023 档案
摘要:// 查询点集中到指定面最近的点static tag_t GetMinDistPoint(tag_t face, std::vector<tag_t>& points){ double dist = DBL_MAX; double faceCenter[3] = { 0.0, 0.0, 0.0 };
阅读全文
摘要:自定义的SplitString函数对字符串进行分割 void SplitString(const std::string& s, std::vector<std::string>& v, const std::string& c){ std::string::size_type pos1, pos2
阅读全文
摘要:static void MapPoint(const bool wcsToAbs, double wcsP[3], double absP[3]){ int from = wcsToAbs ? UF_CSYS_ROOT_WCS_COORDS : UF_CSYS_ROOT_COORDS; int to
阅读全文
摘要:tag_t WorkPartTAG = UF_ASSEM_ask_work_part(); UF_ATTR_value_t value; int title_type; string strAttr; UF_ATTR_find_attribute(bodyTAG, UF_ATTR_any, "YX_
阅读全文
摘要:// 全局变量 std::vector<tag_t> vecTAGbody; //装拉伸后实体TAG std::vector<NXObject*> vecTAGtxt; //装TXT曲线特征TAG vector<NXObject*>::iterator itvecTAGtxt; list<doubl
阅读全文
摘要:#include <uf_ugfont.h>#include <uf_drf.h> //查找字体int index=-1;tag_t s_part_tag=UF_PART_ask_display_part();tag_t s_obj=NULL_TAG;UF_OBJ_cycle_objs_in_par
阅读全文
摘要:uf_list_p_t face_list; UF_MODL_ask_body_faces(bodyTAG, &face_list); int count; UF_MODL_ask_list_count(face_list, &count); uf_list_p_t yz_face_list; UF
阅读全文
摘要:void DZWEIZHI::OpenMain()//主入口 { try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *wor
阅读全文
摘要:void DZWEIZHI::Dele()//删除对象 { try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPa
阅读全文
摘要:void DZWEIZHI::RemoveParam()//去参 { try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *w
阅读全文
摘要:void DZWEIZHI::CreaExtrude(string str, double note_origin[3], tag_t Obj)//创建拉伸nxopen方式{ try { // Enter your callback code here NXOpen::Session *theSes
阅读全文
摘要:void DZWEIZHI::CreaExtrudeBuilder()//创建拉伸UFUN+nxopen{ try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession
阅读全文
摘要:void DZWEIZHI::CreaTxt(string str, double note_origin[3])////创建TXT文字{ try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Ses
阅读全文
摘要:void SplitString(const std::string& s, std::vector<std::string>& v, const std::string& c){ std::string::size_type pos1, pos2; pos2 = s.find(c); pos1 =
阅读全文
摘要:class PersonT{public: PersonT(double D0, double D1, double D2, string strNUMBER, double DX, double DY, double DZ, double DTAG) { this->M_D0 = D0; this
阅读全文
摘要:#define UF_CALL(X) (report( __FILE__, __LINE__, #X, (X)))static int report(char *file, int line, char *call, int irc){ if (irc) { char messg[133]; pri
阅读全文
摘要:double Angle_faceFaec(tag_t Obj1, tag_t Obj2)//测量角度{ NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPart(theSession->P
阅读全文
摘要:double Dis_lineLine(tag_t Obj1, tag_t Obj2)//测量距离{ NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPart(theSession->Par
阅读全文
摘要:double Dis_faceFaec(tag_t Obj1, tag_t Obj2)//测量距离{ NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPart(theSession->Par
阅读全文