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