NX9+VS2012

     #include <uf.h>
#include <uf_drf.h>
#include <NXOpen/Annotations_Note.hxx>
#include <NXOpen/NXObjectManager.hxx> UF_initialize(); //创建注释
char* TextString[] = {"Caesar卢尚宇"};
double Origin3d[] = {,,};
tag_t NoteTag = NULL_TAG;
UF_DRF_create_note(, TextString, Origin3d, , &NoteTag); //读取注释
Annotations::Note *note1(dynamic_cast<Annotations::Note *>(NXObjectManager::Get(NoteTag)));
std::vector<NXString> Notes = note1->GetText(); //打印
lw->Open();
lw->WriteLine(Notes[].GetLocaleText()); UF_terminate();

NX二次开发-NXOpen读取工程图注释note1-&gt;GetText();-LMLPHP

05-28 10:36