说明:通过SelectTaggedObjects,通过SelectTaggedObjects,选择多个UG对象并输出对象的类型
对象的类型分为:(Type)大类和子类(SubType),UG中大部分公共对象都是在头文件uf_object_type.h中定义。
测试代码:选择多个对象并输出对象的类型和子类型
//通过SelectTaggedObject选择对象并输出tag标签
#if ! defined ( __hp9000s800 ) && ! defined ( __sgi ) && ! defined ( __sun )
# include <strstream>
# include <iostream>
using std::ostrstream;
using std::endl;
using std::ends;
using std::cerr;
#else
# include <strstream.h>
# include <iostream.h>
#endif
#include <uf.h>
#include <uf_ui.h>
#include <uf_exit.h>
#include <uf_defs.h>
#include <NXOpen/NXException.hxx>
#include <NXOpen/ModelingView.hxx>
#include <NXOpen/ModelingViewCollection.hxx>
#include <NXOpen/Part.hxx>
#include <NXOpen/PartCollection.hxx>
#include <uf_ui.h>
#include <uf_ui_ugopen.h>
#include <uf.h>
#includ