2019年1月24日

摘要: //锁定UI int uiLockStatus = theUFSession.Ui.AskLockStatus(); if (uiLockStatus != UFConstants.UF_UI_LOCK) { int result = theUFSession.Ui.LockUgAccess(NXO 阅读全文
posted @ 2019-01-24 11:33 程序员乌鸦 阅读(330) 评论(0) 推荐(0) 编辑

2018年9月3日

摘要: C++ void CNXOper::ResetSize(){ HWND hWnd = GetActiveWindow(); CWnd *pCWnd = CWnd::FromHandle(hWnd); //该函数返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出 RECT old 阅读全文
posted @ 2018-09-03 14:42 程序员乌鸦 阅读(221) 评论(0) 推荐(0) 编辑

2018年1月9日

摘要: string COfficeControlTestToolDlg::ReadFile(CString strFilePath) { CFile mFile; if(!mFile.Open(strFilePath,CFile::modeRead|CFile::typeBinary)) { Messag 阅读全文
posted @ 2018-01-09 21:29 程序员乌鸦 阅读(220) 评论(0) 推荐(0) 编辑

2017年7月6日

摘要: UF_UI_ONT_refresh 作用:解决 NX二次开发由程序创建的程序不会立马显示问题。 c++: uf_ui_ont.h UF_UI_ONT_refresh(); c#: theUFSession.UiOnt.Refresh(); 阅读全文
posted @ 2017-07-06 15:51 程序员乌鸦 阅读(284) 评论(0) 推荐(0) 编辑

2017年3月21日

摘要: 我们可以先用NX自带的工具,先检查一下你的代码是否有潜在的问题: 1. 设置环境变量UGII_DISPLAY_DEBUG=1 2. 启动NX,运行你写的代码 2. Help->Debug->Debug Tools->Toolbox 3. 点击如下按钮:对号 4. 点击“OM World” 5. 如果 阅读全文
posted @ 2017-03-21 20:09 程序员乌鸦 阅读(538) 评论(0) 推荐(0) 编辑

2016年12月28日

摘要: C:\Users\lv>cd /d C:\Siemens\Teamcenter11\lib C:\Siemens\Teamcenter11\lib>dir /B *.lib >list.txt 阅读全文
posted @ 2016-12-28 15:53 程序员乌鸦 阅读(193) 评论(0) 推荐(0) 编辑

2016年11月16日

摘要: // 参数说明: // in, 源字符串 // out, 存放最后结果的字符串 // outlen,out最大的大小 // src,要替换的字符串 // dst,替换成什么字符串 char *strrpl(char *in, char *out, int outlen, const char *sr 阅读全文
posted @ 2016-11-16 15:29 程序员乌鸦 阅读(197) 评论(0) 推荐(0) 编辑

2016年9月22日

摘要: 生成dll程序 extern "C"_declspec(dllexport) void maopao(int *p,int count);void maopao(int *p,int count){ int temp=0; for(int i=1;i<count;i++) { for(int j=c 阅读全文
posted @ 2016-09-22 13:39 程序员乌鸦 阅读(411) 评论(0) 推荐(0) 编辑

2016年7月27日

摘要: void focusNotify_cb(NXOpen::BlockStyler::UIBlock* block, bool focus){ try { if(block == edgeCircle || block == edgeSelect ||block == faceSelect || blo 阅读全文
posted @ 2016-07-27 09:26 程序员乌鸦 阅读(406) 评论(0) 推荐(0) 编辑

2016年7月12日

摘要: 遍历得到PMI中,是注释类型的,你可以参考一下。int num_text, thetype, thesubtype;tag_t draft_aid_tag = NULL_TAG;UF_UI_open_listing_window();UF_DRF_draft_aid_text_info_t * te 阅读全文
posted @ 2016-07-12 09:52 程序员乌鸦 阅读(218) 评论(0) 推荐(0) 编辑

导航