//头文件

#include <Windows.h>

#include <iostream>

#include <NXOpen/ListingWindow.hxx>

//定义函数

string GetNXPath();

//获取NX主程序路径
string MyClass::GetNXPath()
{
char NXPath[MAX_PATH];
GetModuleFileNameA(NULL, NXPath, MAX_PATH);
string NX_path = NXPath;
return NX_path;
}

void MyClass::do_it()
{

// 打开信息窗口

theSession->ListingWindow()->Open();

string NXFullPath = GetNXPath();

//输出路径到信息窗口
theSession->ListingWindow()->WriteLine(NXFullPath);

}

最新文章

  1. Android Studio:Failed to resolve ***
  2. ListView 中的ImageView Button
  3. 数组中第K小的数字(Google面试题)
  4. WPF学习之路(八)页面
  5. JVM最多能创建多少个线程:unabletocreatenewnativethread
  6. XMPP协议错误码
  7. iOS-设计模式-懒加载
  8. jsp笔记
  9. nginx + keepalived 双机热备
  10. JSP标记
  11. 1.ssh访问限制
  12. Atitit.hibernate体系结构大总结
  13. 平时的笔记02:处理fnmatch模块
  14. 想使用WM_CONCAT 函数进行多列转一行,但发现没有
  15. git初学笔记1
  16. HTML知识点总结之table
  17. Python深度学习(Deep Learning with Python) 中文版+英文版+源代码
  18. Java Jvm运行机制原理
  19. python基础知识13---函数对象、函数嵌套、名称空间与作用域、装饰器
  20. JQuery之Attr()与Prop()方法

热门文章

  1. No.1.2
  2. 39.Feign
  3. 当FTP不能满足大文件、海量文件传输时,有没有好的替代方案?
  4. linux搭建FastDFS文件服务器,安装nginx
  5. jmeter支持发送https请求
  6. ios MJRefresh 上拉死循环刷新问题+git 图片
  7. GitLab版本定版
  8. FastReport报表金额数字转大写问题
  9. AVD文件转移到非系统盘
  10. Tacotron2论文阅读笔记