Teamcenter_NX集成开发:通过NXOpen查询零组件是否存在

这篇博客介绍了如何通过C++开发DLL工程,利用NXOpen的PDM命名空间下的类来查询Teamcenter中的零组件信息,以此判断组件是否存在于Teamcenter中。查询函数基于__NX_STD_ANY_ITEM_QUERY,该查询也可在Teamcenter查询构建器模块找到。博客内容包括DLL工程的设置和程序执行后的截图展示。
摘要由CSDN通过智能技术生成

该内容已在博客园发布。Teamcenter_NX集成开发:通过NXOpen查询零组件是否存在 - huangym1 - 博客园 (cnblogs.com)

之前用过NXOpen PDM的命名空间下的类,现在记录一下通过PDM命名空间下的类查询Teamcenter零组件的信息,也可以用来判断该零组件是否存在。

1-该工程为DLL工程,直接在NX界面调用,所以直接获取NXSession。

2-查询函数advanced用到的查询为:__NX_STD_ANY_ITEM_QUERY,可以在Teamcenter查询构建器模块中看到该查询。

// Mandatory UF Includes
#include <uf.h>
#include <uf_object_types.h>

// Internal Includes
#include <NXOpen/ListingWindow.hxx>
#include <NXOpen/NXMessageBox.hxx>
#include <NXOpen/UI.hxx>
#include <NXOpen/LogFile.hxx>

// Internal+External Includes
#include <NXOpen/Annotations.hxx>
#include <NXOpen/Assemblies_Component.hxx>
#include <NXOpen/Assemblies_ComponentAssembly.hxx>
#include <NXOpen/Body.hxx>
#include <NXOpen/BodyCollection.hxx>
#include <NXOpen/Face.hxx>
#include <NXOpen/Line.hxx>
#include <NXOpen/NXException.hxx>
#include <NXOpen/NXObject.hxx>
#include <NXOpen/Part.hxx>
#include <NXOpen/PartCollection.hxx>
#include <NXOpen/Session.hxx>

#include <NXOpen/PDM_SoaConnectionHandle.hxx>
#include <NXOpen/PDM_PdmSession.hxx>
#include <NXOpen/PDM_PdmSearch.hxx>
#include <NXOpen/PDM_PdmFile.hxx>
#include <NXOpen/PDM_PdmNavigatorNode.hxx>
#include <NXOpen/PDM_PdmPart.hxx>
#include <NXOpen/PDM_PdmSearchManager.hxx>
#include <NXOpen/PDM_SoaQuery.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值