zoukankan      html  css  js  c++  java
  • NXOpen 工程图创建注释

    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();

    怡宁塑胶模具设计
  • 相关阅读:
    HPA
    docker 入门
    idea手动保存文本
    mac下安装配置sql plus
    oracle序列
    oracle存储过程
    Java正则表达式
    expect命令
    关于OneDrive/GoogleDrive推送的定价方案征询
    存储设备故障已修复,及对用户的补偿措施
  • 原文地址:https://www.cnblogs.com/hqsalanhuang/p/14588136.html
Copyright © 2011-2022 走看看