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 }; 阅读全文
posted @ 2023-02-22 10:58 firetuo 阅读(21) 评论(0) 推荐(0) 编辑
摘要:自定义的SplitString函数对字符串进行分割 void SplitString(const std::string& s, std::vector<std::string>& v, const std::string& c){ std::string::size_type pos1, pos2 阅读全文
posted @ 2023-02-22 10:40 firetuo 阅读(61) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-02-22 10:26 firetuo 阅读(34) 评论(0) 推荐(0) 编辑
摘要: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_ 阅读全文
posted @ 2023-02-18 14:09 firetuo 阅读(30) 评论(0) 推荐(0) 编辑
摘要:// 全局变量 std::vector<tag_t> vecTAGbody; //装拉伸后实体TAG std::vector<NXObject*> vecTAGtxt; //装TXT曲线特征TAG vector<NXObject*>::iterator itvecTAGtxt; list<doubl 阅读全文
posted @ 2023-02-18 14:08 firetuo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#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 阅读全文
posted @ 2023-02-18 14:06 firetuo 阅读(40) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-02-18 14:03 firetuo 阅读(40) 评论(0) 推荐(0) 编辑
摘要:void DZWEIZHI::OpenMain()//主入口 { try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *wor 阅读全文
posted @ 2023-02-18 12:02 firetuo 阅读(28) 评论(0) 推荐(0) 编辑
摘要:void DZWEIZHI::Dele()//删除对象 { try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *workPa 阅读全文
posted @ 2023-02-18 12:02 firetuo 阅读(37) 评论(0) 推荐(0) 编辑
摘要:void DZWEIZHI::RemoveParam()//去参 { try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession(); NXOpen::Part *w 阅读全文
posted @ 2023-02-18 12:01 firetuo 阅读(69) 评论(0) 推荐(0) 编辑
摘要:void DZWEIZHI::CreaExtrude(string str, double note_origin[3], tag_t Obj)//创建拉伸nxopen方式{ try { // Enter your callback code here NXOpen::Session *theSes 阅读全文
posted @ 2023-02-18 12:00 firetuo 阅读(134) 评论(0) 推荐(0) 编辑
摘要:void DZWEIZHI::CreaExtrudeBuilder()//创建拉伸UFUN+nxopen{ try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Session::GetSession 阅读全文
posted @ 2023-02-18 11:59 firetuo 阅读(82) 评论(0) 推荐(0) 编辑
摘要:void DZWEIZHI::CreaTxt(string str, double note_origin[3])////创建TXT文字{ try { // Enter your callback code here NXOpen::Session *theSession = NXOpen::Ses 阅读全文
posted @ 2023-02-18 11:58 firetuo 阅读(224) 评论(0) 推荐(0) 编辑
摘要: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 阅读(30) 评论(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 阅读(44) 评论(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 阅读(62) 评论(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 阅读(111) 评论(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 阅读(77) 评论(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 阅读(75) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示