摘要: 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 = 阅读全文
posted @ 2023-02-18 11:57 firetuo 阅读(42) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2023-02-18 11:55 firetuo 阅读(69) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2023-02-18 11:53 firetuo 阅读(103) 评论(0) 推荐(0)
摘要: double Angle_faceFaec(tag_t Obj1, tag_t Obj2)//测量角度{ NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPart(theSession->P 阅读全文
posted @ 2023-02-18 11:52 firetuo 阅读(140) 评论(0) 推荐(0)
摘要: double Dis_lineLine(tag_t Obj1, tag_t Obj2)//测量距离{ NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPart(theSession->Par 阅读全文
posted @ 2023-02-18 11:50 firetuo 阅读(102) 评论(0) 推荐(0)
摘要: double Dis_faceFaec(tag_t Obj1, tag_t Obj2)//测量距离{ NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPart(theSession->Par 阅读全文
posted @ 2023-02-18 11:49 firetuo 阅读(133) 评论(0) 推荐(0)
摘要: int grip_arg_count = 4; //参数个数 UF_args_t grip_arg_list[4]; //参数个数要一致 char *grip_exe = "D:\\myTOOLS\\application\\delete_layer.grx"; //grip程序位置 int sta 阅读全文
posted @ 2021-09-03 15:48 firetuo 阅读(58) 评论(0) 推荐(0)
摘要: string folderPath = strDir + "\\PDF";//定义要创建文件夹的目录 if (0 != access(folderPath.c_str(), 0))//判断文件夹是否存在 { mkdir(folderPath.c_str());//创建文件夹 } 阅读全文
posted @ 2021-09-03 15:44 firetuo 阅读(146) 评论(0) 推荐(0)
摘要: 方法1: char path[] = "D:\\bc.xlsx"; string strPath = path; string suffix_str = strPath.substr(strPath.find_last_of('.') );//获取后缀 方法2: char path[] = "D:\ 阅读全文
posted @ 2021-09-03 15:36 firetuo 阅读(62) 评论(0) 推荐(0)