怡宁塑胶模具设计

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

 

 

 

posted on 2021-04-14 11:38  怡宁塑胶模具设计  阅读(311)  评论(0编辑  收藏  举报