02 2014 档案

摘要:NXString tem1; attrs_item_id.push_back("1"); attrs_item_id.push_back("2");attrs_item_id.push_back("3");attrs_part_name.push_back("ww"); attrs_part_name.push_back("ee"); attrs_part_name.push_back("你"); NXOpen::BlockStyler::UIBlock * node; st 阅读全文

posted @ 2014-02-27 09:59 程序员乌鸦 阅读(376) 评论(0) 推荐(0)

摘要:1.寻找root_folder_name:UF_UGMGR_tag_t root;ifail = UF_UGMGR_ask_root_folder(&root);char folder_name[UF_UGMGR_NAME_SIZE + 1]; ifail;UF_UGMGR_ask_folder_name(root, folder_name);2.获取当前系统所有版本规则与当前使用的规则intnum_rules;char**config_rules;charcurrent_rule[UF_UGMGR_NAME_SIZE+1];UF_UGMGR_list_config_rules( &a 阅读全文

posted @ 2014-02-25 16:58 程序员乌鸦 阅读(660) 评论(0) 推荐(0)

摘要:内部开发初始化:extern "C" DllExport void ufusr(char *param, int *retcod, int param_len){int ifail = 0;const char* ee=param;ifail = UF_UGMGR_initialize(param_len,&ee);UF_UGMGR_terminate();} 阅读全文

posted @ 2014-02-25 16:22 程序员乌鸦 阅读(371) 评论(0) 推荐(0)

摘要:CFileDialog文件选择对话框的使用:首先构造一个对象并提供相应的参数,构造函数原型如下:CFileDialog::CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );参数意义如下: bOpenFileDialog 为TRUE则显示打开对话框,为 阅读全文

posted @ 2014-02-19 10:55 程序员乌鸦 阅读(407) 评论(0) 推荐(0)

摘要://保存路径TCHAR szBuffer[MAX_PATH] = {0}; BROWSEINFO bi; ZeroMemory(&bi,sizeof(BROWSEINFO)); bi.hwndOwner = NULL; bi.pszDisplayName = szBuffer; bi.lpszTitle = _T("选择保存文件路径:"); bi.ulFlags = BIF_RETURNFSANCESTORS; LPITEMIDLIST idl = SHBrowseForFolder(&bi); if (NULL == idl) { return 0; } 阅读全文

posted @ 2014-02-19 10:09 程序员乌鸦 阅读(1039) 评论(0) 推荐(0)

摘要:写:#includestd::ofstream fout;fout.open("output.txt");fout _base;//通过换行符分割成一个数组char* vectLines=strtok(const_cast( fp_base.GetText()), "\n");while( vect... 阅读全文

posted @ 2014-02-18 11:38 程序员乌鸦 阅读(836) 评论(0) 推荐(0)

摘要:记忆力不好,老是忘记,记录下:char *pathvar; pathvar = getenv("PATH");char *BOM_dir1 = getenv("UGII_USER_DIR"); char BOM_dir[128]; strcpy(BOM_dir,BOM_dir1); if (BOM_... 阅读全文

posted @ 2014-02-18 10:22 程序员乌鸦 阅读(777) 评论(0) 推荐(0)

摘要:今天码代码时发下个问题:constchar* chrs=rootNode->GetColumnDisplayText(j).GetLocaleText();chrs为空,而用以下代码:char tem[100];strcpy(tem,rootNode->GetColumnDisplayText(j).GetLocaleText());tem是有有效值的,原因不明,不顾问题能解决就好. 阅读全文

posted @ 2014-02-14 15:02 程序员乌鸦 阅读(316) 评论(0) 推荐(0)

摘要:黏贴以下代码即可:TCHAR szBuffer[MAX_PATH] = {0}; BROWSEINFO bi; ZeroMemory(&bi,sizeof(BROWSEINFO)); bi.hwndOwner = NULL; bi.pszDisplayName = szBuffer; bi.lpszTitle = _T("从下面选择文件或文件夹:"); bi.ulFlags = BIF_BROWSEINCLUDEFILES; LPITEMIDLIST idl = SHBrowseForFolder(&bi); if (NULL == idl) { retur 阅读全文

posted @ 2014-02-13 10:21 程序员乌鸦 阅读(722) 评论(0) 推荐(0)

摘要:(1) The CID is comprised of a number of system configuration items. Forsecurity reasons the entre list is not published.(2) There are changes on a NX license server that can change the CID whichrequires Siemens PLM to regenerate a new license file. Here is a list of itemsthat can change a CID: - hos 阅读全文

posted @ 2014-02-12 15:57 程序员乌鸦 阅读(470) 评论(0) 推荐(0)

摘要:本人对Check_Mate功能的理解不够深入,若有错误,请指出,在此先谢谢了! 关于Check_Mate外部开发模式,首先要提的是 ...\DESIGN_TOOLS\checkmate\文件夹下面的ug_check_part.exe工具,这里只讲如何使用这个工具,至于这个工具是如何写出来的,待研究. 首先打开黑框框,在里面输入: %UGII_BASE_DIR%\UGII\ug_check_part.exe %*pause 得到这个工具的详细解释. 里面提供了如何调用NX自定义的class,我们只需要去配置想要的检查包,然后写个程序调用系统自带的exe文件. 一个小列子:创建test.bat文件 阅读全文

posted @ 2014-02-12 10:50 程序员乌鸦 阅读(1136) 评论(0) 推荐(0)

导航