UG\NX secondary development obtains all attribute names in the working part

Author of the article: Caspian
Source Website: https://blog.csdn.net/WangPaiFeiXingYuan


Introduction:

        Get all property names in the job part. The following program can be used as a reference. But there are still two strange problems.

1. The attributes are incomplete. 2. The name of the MaterialMissingAssignments attribute is NX_MaterialMissingAssignments.

Effect:

      

code:

#include "me.hpp" 
using namespace std;

//获取工作部件的所有属性名
vector<string> GetWorkPartAttrTitle()
{
    vector<string> allAttrTitle;
    tag_t obj 

Guess you like

Origin blog.csdn.net/WangPaiFeiXingYuan/article/details/131790569