zoukankan      html  css  js  c++  java
  • NXOpen获取当前图纸页所有视图

    VS2010 NX8.5

    #include <NXOpen/Drawings_DrawingSheetCollection.hxx>
    #include <NXOpen/Drawings_DraftingView.hxx>
    #include <NXOpen/Drawings_DraftingViewCollection.hxx>
    #include <NXOpen/Drawings_DraftingViewCollection.hxx>
    #include <NXOpen/Annotations_Dimension.hxx>
    #include <NXOpen/Annotations_DimensionCollection.hxx>
    #include <NXOpen/Annotations.hxx>
    #include <NXOpen/Drawings_DrawingSheet.hxx>
    #include <NXOpen/Drawings_DrawingSheetBuilder.hxx>
    #include <NXOpen/Drawings_DraftingView.hxx>
    #include <NXOpen/Drawings_DraftingViewCollection.hxx>

    theSession->ListingWindow()->Open();
    //得到当前图纸页
    NXOpen::Drawings::DrawingSheet* WorkSheet = workPart->DrawingSheets()->CurrentDrawingSheet();
    //遍历当前图纸视图
    vector<NXOpen::Drawings::DraftingView*> workSheetView = WorkSheet->GetDraftingViews();

    for (int j = 0; j < workSheetView.size(); j++)
    {
    //获取视图名字
    NXString ViewName = workSheetView[j]->Name();
    theSession->ListingWindow()->WriteLine(ViewName);
    }

    怡宁塑胶模具设计
  • 相关阅读:
    谢尔排序(缩小增量排序)
    折半插入排序
    插入排序
    选择排序
    冒泡排序
    ul+js模拟select+改进
    ul+js模拟select
    前端面试题
    js数组去重的三种常用方法总结
    使用PHP实现文件上传和多文件上传
  • 原文地址:https://www.cnblogs.com/hqsalanhuang/p/14657091.html
Copyright © 2011-2022 走看看