摘要:
std::ostringstream out; double f8Value; NXOpen::CAM::CAMSetup *camSetup = displayPart->CAMSetup(); NXOpen::CAM::OperationCollection *operColl = camSet
閱讀全文
posted @ 2022-10-26 16:51
老婆餅里有老婆
閱讀(171)
推薦(0)
摘要:
#include <NXOpen/Annotations.hxx> #include <NXOpen/Assemblies_Component.hxx> #include <NXOpen/Assemblies_ComponentAssembly.hxx> #include <NXOpen/Body.
閱讀全文
posted @ 2022-10-20 15:09
老婆餅里有老婆
閱讀(144)
推薦(0)
摘要:
VS編譯找到幾十個這樣的報錯,是因為引用的庫是Release版本,編譯也是這個版本但C語言標準卻用的是默認舊版,需要改為2018標準,并且Release版本對應運行庫 多線程DLL(/MD),再次編譯OK了
閱讀全文
posted @ 2022-10-13 08:52
老婆餅里有老婆
閱讀(143)
推薦(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
老婆餅里有老婆
閱讀(187)
推薦(0)
摘要:
//收集實體數據 Body* body1; BodyCollection::iterator it; for (it = workPart->Bodies()->begin(); it != workPart->Bodies()->end(); it++) { }
閱讀全文
posted @ 2022-07-16 16:01
老婆餅里有老婆
閱讀(124)
推薦(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
老婆餅里有老婆
閱讀(179)
推薦(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
老婆餅里有老婆
閱讀(131)
推薦(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
老婆餅里有老婆
閱讀(124)
推薦(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
老婆餅里有老婆
閱讀(107)
推薦(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
老婆餅里有老婆
閱讀(126)
推薦(0)
摘要:
// ConsoleApplication1.cpp : 此文件包含 "main" 函數。程序執行將在此處開始并結束。 // #include <stdio.h> #include <iostream> #include <string.h> #include <vector> using name
閱讀全文
posted @ 2021-05-16 22:12
老婆餅里有老婆
閱讀(105)
推薦(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
老婆餅里有老婆
閱讀(165)
推薦(0)
摘要:
UF_PARAM_generate 生成刀軌 UF_PARAM_duplicate 此函數創建與“old_obj_tag”類型相同的新對象。它使用'old_obj_tag'數據初始化此對象。它將“名稱”指定給新對象作為其名稱。它在'new_obj_tag'中返回這個新創建的對象的標記 。 UF_PA
閱讀全文
posted @ 2021-03-25 13:04
老婆餅里有老婆
閱讀(141)
推薦(0)
摘要:
#include <windows.h> MessageBox(NULL, "提示內容!", "提示標題", MB_ICONHAND);//錯誤 MessageBox(NULL, "提示內容!", "提示標題", MB_ICONQUESTION);//問號 MessageBox(NULL, "提示內
閱讀全文
posted @ 2021-03-14 13:24
老婆餅里有老婆
閱讀(193)
推薦(0)
摘要:
Session* theSession = Session::GetSession(); Part* workPart(theSession->Parts()->Work()); UI* theUI = UI::GetUI(); CAM::CylinderMillingBuilder* cylind
閱讀全文
posted @ 2021-03-13 21:10
老婆餅里有老婆
閱讀(228)
推薦(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
老婆餅里有老婆
閱讀(72)
推薦(0)
摘要:
char* release; UF_get_release(&release); uc1601(release, 1); UF_free(release);
閱讀全文
posted @ 2021-01-18 18:53
老婆餅里有老婆
閱讀(175)
推薦(0)
posted @ 2021-01-18 09:24
老婆餅里有老婆
閱讀(189)
推薦(0)
摘要:
c++ stl multimap基本操作使用技巧詳細介紹 C++ stl Multimap 和C++ stl map 很相似,但是MultiMap允許重復的元素。 C++ stl Multimap的基本操作類成員函數列表介紹如下: begin()返回指向第一個元素的迭代器 clear()刪除所有元素
閱讀全文
posted @ 2020-11-19 17:29
老婆餅里有老婆
閱讀(435)
推薦(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
老婆餅里有老婆
閱讀(216)
推薦(0)
摘要:
定義了vector類型的數據,要找到其中的最大最小值,其實在C++中的algorithm頭文件下就有直接的函數可以使用: #include <vector> #include <algorithm> vector<double>s; double min = *min_element(s.begin
閱讀全文
posted @ 2020-09-17 22:04
老婆餅里有老婆
閱讀(274)
推薦(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
老婆餅里有老婆
閱讀(377)
推薦(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
老婆餅里有老婆
閱讀(191)
推薦(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
老婆餅里有老婆
閱讀(411)
推薦(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
老婆餅里有老婆
閱讀(379)
推薦(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
老婆餅里有老婆
閱讀(613)
推薦(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
老婆餅里有老婆
閱讀(368)
推薦(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
老婆餅里有老婆
閱讀(374)
推薦(0)
摘要:
1 NXOpen::Display::Background *background; 2 background = workPart->Views()->CreateBackground(workPart->ModelingViews()->WorkView(), false); 3 backgro
閱讀全文
posted @ 2020-06-08 21:42
老婆餅里有老婆
閱讀(532)
推薦(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
老婆餅里有老婆
閱讀(242)
推薦(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
老婆餅里有老婆
閱讀(458)
推薦(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
老婆餅里有老婆
閱讀(543)
推薦(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
老婆餅里有老婆
閱讀(256)
推薦(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
老婆餅里有老婆
閱讀(691)
推薦(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
老婆餅里有老婆
閱讀(367)
推薦(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
老婆餅里有老婆
閱讀(195)
推薦(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
老婆餅里有老婆
閱讀(255)
推薦(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
老婆餅里有老婆
閱讀(483)
推薦(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
老婆餅里有老婆
閱讀(298)
推薦(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
老婆餅里有老婆
閱讀(414)
推薦(0)