zoukankan      html  css  js  c++  java
  • NXOpen 获取当前图纸页和遍历图纸页

    VS2010  NX8.5

    #include <NXOpen/Drawings_DraftingView.hxx>
    #include <NXOpen/Drawings_DraftingViewCollection.hxx>

    #include <NXOpen/ListingWindow.hxx>

    theSession->ListingWindow()->Open();

    //得到当前图纸页
    NXOpen::Drawings::DrawingSheet* WorkSheet = workPart->DrawingSheets()->CurrentDrawingSheet();

    //遍历图纸页

    NXOpen::Drawings::DrawingSheet* theDrawingsSheets;//定义类型
    vector<NXOpen::Drawings::DrawingSheet*> AllSheetsVector;//存到vector
    NXOpen::Drawings::DrawingSheetCollection *DrawingsSheets=workPart->DrawingSheets();//迭代
    NXOpen::Drawings::DrawingSheetCollection::iterator itr = workPart->DrawingSheets()->begin();
    for (;itr!=DrawingsSheets->end();++itr) //循环获得所有图纸页
    {
    theDrawingsSheets=(*itr); //获得图纸页
    theSession->ListingWindow()->WriteLine(theDrawingsSheets->Name());
    AllSheetsVector.push_back(theDrawingsSheets);
    }

     

    怡宁塑胶模具设计
  • 相关阅读:
    poj2492A Bug's Life
    poj2912Rochambeau
    poj1062昂贵的聘礼
    poj3169Layout(差分约束)
    poj2240Arbitrage
    poj1502MPI Maelstrom
    poj3259Wormholes
    1/8=1/a+1/b,a,b为自然数
    目录查找
    待删除未删除 问题解决
  • 原文地址:https://www.cnblogs.com/hqsalanhuang/p/14656478.html
Copyright © 2011-2022 走看看