摘要: std::ostringstream out; double f8Value; NXOpen::CAM::CAMSetup *camSetup = displayPart->CAMSetup(); NXOpen::CAM::OperationCollection *operColl = camSet 阅读全文
posted @ 2022-10-26 16:51 老婆饼里有老婆 阅读(85) 评论(1) 推荐(0) 编辑
摘要: #include <NXOpen/Annotations.hxx> #include <NXOpen/Assemblies_Component.hxx> #include <NXOpen/Assemblies_ComponentAssembly.hxx> #include <NXOpen/Body. 阅读全文
posted @ 2022-10-20 15:10 老婆饼里有老婆 阅读(68) 评论(0) 推荐(0) 编辑
摘要: VS编译找到几十个这样的报错,是因为引用的库是Release版本,编译也是这个版本但C语言标准却用的是默认旧版,需要改为2018标准,并且Release版本对应运行库 多线程DLL(/MD),再次编译OK了 阅读全文
posted @ 2022-10-13 08:53 老婆饼里有老婆 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <windows.h>#include <vector> using namespace std;int main(){ //HWND qqhwnd = FindWindow(L"TXGuiFoundation", L" 我旳薆 很低調;;") 阅读全文
posted @ 2022-08-02 09:50 老婆饼里有老婆 阅读(164) 评论(1) 推荐(0) 编辑
摘要: //收集实体数据 Body* body1; BodyCollection::iterator it; for (it = workPart->Bodies()->begin(); it != workPart->Bodies()->end(); it++) { } 阅读全文
posted @ 2022-07-16 16:01 老婆饼里有老婆 阅读(82) 评论(0) 推荐(0) 编辑
摘要: BOOL PK_AskFaceAreas(tag_t face_tag, double tol, double &areas) {//获得面积 tag_t ps_tag = NULL_TAG; double amount[3] = { 0.0, 0.0, 0.0 }; double mass[3] 阅读全文
posted @ 2022-01-24 20:32 老婆饼里有老婆 阅读(98) 评论(0) 推荐(1) 编辑
摘要: double org[3] = { 10.0,0.0,0.0 }; double mtx[9] = { 1.0,0,0,0,1.0,0,0,0,1.0 }; double axisZ[3] = { 0,0,1.0 }; UF_MTX3_rotate_about_axis(axisZ, 180.0 * 阅读全文
posted @ 2022-01-11 15:27 老婆饼里有老婆 阅读(94) 评论(0) 推荐(0) 编辑
摘要: //字符串分割函数 std::vector<std::string> split(std::string str, std::string pattern) { std::string::size_type pos; std::vector<std::string> result; str += p 阅读全文
posted @ 2021-08-04 14:34 老婆饼里有老婆 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h> #include <iostream> #include <vector> using namespace std; int main() { DWORD startTime = GetTickCount64();//计时开始 Sleep(2345); DW 阅读全文
posted @ 2021-06-17 15:24 老婆饼里有老婆 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; double* aaa() { double tmp[3] = { 1.01,2.02,3.03 }; double* tmp1 = new double[3]; for (size_t i = 0; i < 3; i 阅读全文
posted @ 2021-06-12 10:19 老婆饼里有老婆 阅读(113) 评论(0) 推荐(0) 编辑
摘要: // ConsoleApplication1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <stdio.h> #include <iostream> #include <string.h> #include <vector> using name 阅读全文
posted @ 2021-05-16 22:12 老婆饼里有老婆 阅读(91) 评论(0) 推荐(0) 编辑
摘要: //Create_cyl ?C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCWizards\NXOpenCPP\templates\1033\root.txt // Mandatory UF 阅读全文
posted @ 2021-05-10 13:19 老婆饼里有老婆 阅读(130) 评论(0) 推荐(0) 编辑
摘要: UF_PARAM_generate 生成刀轨 UF_PARAM_duplicate 此函数创建与“old_obj_tag”类型相同的新对象。它使用'old_obj_tag'数据初始化此对象。它将“名称”指定给新对象作为其名称。它在'new_obj_tag'中返回这个新创建的对象的标记 。 UF_PA 阅读全文
posted @ 2021-03-25 13:04 老婆饼里有老婆 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h> MessageBox(NULL, "提示内容!", "提示标题", MB_ICONHAND);//错误 MessageBox(NULL, "提示内容!", "提示标题", MB_ICONQUESTION);//问号 MessageBox(NULL, "提示内 阅读全文
posted @ 2021-03-14 13:24 老婆饼里有老婆 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Session* theSession = Session::GetSession(); Part* workPart(theSession->Parts()->Work()); UI* theUI = UI::GetUI(); CAM::CylinderMillingBuilder* cylind 阅读全文
posted @ 2021-03-13 21:10 老婆饼里有老婆 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 double* aaa() 4 { 5 double tmp[3] = { 1.0,2.0,3.0 }; 6 double* tmp1 = new double[3]; 7 for (size_t i = 阅读全文
posted @ 2021-02-27 20:41 老婆饼里有老婆 阅读(53) 评论(0) 推荐(0) 编辑
摘要: char* release; UF_get_release(&release); uc1601(release, 1); UF_free(release); 阅读全文
posted @ 2021-01-18 18:53 老婆饼里有老婆 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 感谢 蚂蚁Emmet 阅读全文
posted @ 2021-01-18 09:24 老婆饼里有老婆 阅读(165) 评论(0) 推荐(0) 编辑
摘要: c++ stl multimap基本操作使用技巧详细介绍 C++ stl Multimap 和C++ stl map 很相似,但是MultiMap允许重复的元素。 C++ stl Multimap的基本操作类成员函数列表介绍如下: begin()返回指向第一个元素的迭代器 clear()删除所有元素 阅读全文
posted @ 2020-11-19 17:29 老婆饼里有老婆 阅读(379) 评论(0) 推荐(0) 编辑
摘要: struct MyStruct4 { Point3d p1; Point3d p2; Point3d p3; Point3d p4; }; vector<MyStruct4>parts_bnd; static void getpointlist(vector<MyStruct4>& points) 阅读全文
posted @ 2020-09-22 21:50 老婆饼里有老婆 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 定义了vector类型的数据,要找到其中的最大最小值,其实在C++中的algorithm头文件下就有直接的函数可以使用: #include <vector> #include <algorithm> vector<double>s; double min = *min_element(s.begin 阅读全文
posted @ 2020-09-17 22:04 老婆饼里有老婆 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1 #include <NXOpen/MeasureBuilder.hxx> 2 #include <NXOpen/MeasureFaceBuilder.hxx> 3 #include <NXOpen/MeasureFaces.hxx> 4 #include <NXOpen/Unit.hxx> 5 阅读全文
posted @ 2020-09-16 13:56 老婆饼里有老婆 阅读(325) 评论(1) 推荐(1) 编辑
摘要: 以下代码转自 https://blog.csdn.net/summerlq/article/details/81207759 #include<iostream> #include<cstdlib> using namespace std; //交换数组元素位置位置 void swap(int& a 阅读全文
posted @ 2020-09-07 14:20 老婆饼里有老婆 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #include <NXOpen/NXObject.hxx>#include <NXOpen/NXObjectManager.hxx> 1 NXObject* nXObject(dynamic_cast<NXOpen::TaggedObject*>(NXObjectManager::Get(allo 阅读全文
posted @ 2020-08-29 09:06 老婆饼里有老婆 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1 static void aa() 2 { 3 NXOpen::Session* theSession = NXOpen::Session::GetSession(); 4 NXOpen::Part* workPart(theSession->Parts()->Work()); 5 NXOpen: 阅读全文
posted @ 2020-08-27 17:42 老婆饼里有老婆 阅读(296) 评论(3) 推荐(0) 编辑
摘要: 1 // NX 1930 2 // Journal created by Administrator on Wed Jul 29 11:53:25 2020 中国标准时间 3 4 // 5 #include <uf_defs.h> 6 #include <NXOpen/NXException.hxx 阅读全文
posted @ 2020-08-22 19:10 老婆饼里有老婆 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 1 void Create_chamfer_tool( char *toolName,double 直径,int 刀具号) 2 { 3 NXOpen::Session *theSession = NXOpen::Session::GetSession(); 4 NXOpen::Part *workP 阅读全文
posted @ 2020-07-14 16:30 老婆饼里有老婆 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 //存放刀具容器 2 std::vector<string> rootName; 3 std::vector<tag_t> toolTag; 4 5 // TODO: add your code here 6 UF_initialize(); 7 8 tag_t obj = NULL_TAG; 阅读全文
posted @ 2020-07-04 20:29 老婆饼里有老婆 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1 NXOpen::Display::Background *background; 2 background = workPart->Views()->CreateBackground(workPart->ModelingViews()->WorkView(), false); 3 backgro 阅读全文
posted @ 2020-06-08 21:42 老婆饼里有老婆 阅读(424) 评论(1) 推荐(1) 编辑
摘要: 1 UF_initialize(); 2 char sCue[] = "象选择对话框"; 3 char sTitle[] = "象选择对话框"; 4 int iScope = UF_UI_SEL_SCOPE_NO_CHANGE; 5 int iResponse; 6 tag_t *tObject; 阅读全文
posted @ 2020-05-15 18:02 老婆饼里有老婆 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdarg.h> 2 //#include <stdio.h> 3 #include <uf.h> 4 #include <uf_object_types.h> 5 #include <uf_part.h> 6 #include <uf_ui.h> 7 #include < 阅读全文
posted @ 2020-05-11 15:32 老婆饼里有老婆 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 1 char sCue[] = "选择"; 2 char sTitle[] = "功能测试"; 3 int iScope = UF_UI_SEL_SCOPE_NO_CHANGE; 4 int iResponse; 5 tag_t tObject; 6 tag_t viewTag = NULL_TAG 阅读全文
posted @ 2020-05-10 15:30 老婆饼里有老婆 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1 static int select_filter_proc_fn(tag_t object, int type[1], void* user_data, UF_UI_selection_p_t select) 2 { 3 4 if (object == NULL) 5 return UF_UI_ 阅读全文
posted @ 2020-05-08 19:01 老婆饼里有老婆 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1 UF_initialize(); 2 3 double X1[3] = { 1.0,0.0,0.0 }; 4 double Y1[3] = { 0.0,1.0,0.0 }; 5 double mtx0[9]; 6 UF_MTX3_initialize(X1, Y1, mtx0); 7 //创建矩 阅读全文
posted @ 2020-05-02 09:19 老婆饼里有老婆 阅读(541) 评论(2) 推荐(0) 编辑
摘要: 1 //多按钮模态对话框 2 int response = 0; 3 char title_string[] = "Cyan青蓝"; 4 char *sMessages = "心之所愿,无事不成"; 5 UF_UI_MESSAGE_DIALOG_TYPE dialog_type = 6 //UF_U 阅读全文
posted @ 2020-04-30 16:40 老婆饼里有老婆 阅读(334) 评论(3) 推荐(0) 编辑
摘要: 1 // ConsoleApplication.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 2 // 3 //#include "StdAfx.h" 4 #include "windows.h" 5 #include "iostream" 6 #include "str 阅读全文
posted @ 2020-04-29 10:24 老婆饼里有老婆 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1 //对特征命名和分组 2 int mpcount=0; 3 char mmsg[256]; 4 for (size_t j = 0; j < feat.size(); j++) 5 { 6 mpcount++; 7 char *feat_name = NULL; 8 UF_MODL_ask_fe 阅读全文
posted @ 2020-04-28 11:07 老婆饼里有老婆 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1 UF_CURVE_arc_t Obj_data; 2 UF_CURVE_ask_arc_data(tObject[i], &Obj_data); 3 double Sp = Obj_data.start_angle / PI * 180.0; 4 double Ep = Obj_data.end 阅读全文
posted @ 2020-04-26 19:30 老婆饼里有老婆 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1 // NX 8.5.3.3 2 // Journal created by Administrator on Mon Apr 20 11:21:24 2020 中国标准时间 3 // 4 #include "C:\\all_uf.h" 5 #include <uf_defs.h> 6 #incl 阅读全文
posted @ 2020-04-25 14:14 老婆饼里有老婆 阅读(235) 评论(0) 推荐(0) 编辑
摘要: // NX 8.5.3.3 // Journal created by Administrator on Mon Apr 20 11:21:24 2020 中国标准时间 //适用用多个体循环单个删除 #include "C:\\all_uf.h" #include <uf_defs.h> #incl 阅读全文
posted @ 2020-04-25 07:27 老婆饼里有老婆 阅读(325) 评论(1) 推荐(0) 编辑