VS2010 NX8.5
Annotations::SimpleDraftingAid *nullAnnotations_SimpleDraftingAid(NULL);
Annotations::DraftingNoteBuilder *draftingNoteBuilder1;
draftingNoteBuilder1 = workPart->Annotations()->CreateDraftingNoteBuilder(nullAnnotations_SimpleDraftingAid);
draftingNoteBuilder1->Origin()->SetAnchor(Annotations::OriginBuilder::AlignmentPositionMidCenter);
draftingNoteBuilder1->SetTextAlignment(Annotations::DraftingNoteBuilder::TextAlignBelowbottom);
draftingNoteBuilder1->Origin()->Plane()->SetPlaneMethod(Annotations::PlaneBuilder::PlaneMethodTypeXyPlane);
std::vector<NXString> text1(2);//设置本内容
text1[0] = "Alan Huang";
text1[1] = "QQ:185266370";
draftingNoteBuilder1->Text()->TextBlock()->SetText(text1);
draftingNoteBuilder1->Style()->LetteringStyle()->SetGeneralTextSize(10.0);//设置字高
View *nullView(NULL);
Point3d point1(150, 130, 0.0);
draftingNoteBuilder1->Origin()->Origin()->SetValue(NULL, nullView, point1);
NXObject *nXObject1;
nXObject1 = draftingNoteBuilder1->Commit();
draftingNoteBuilder1->Destroy();