////////////////////////////////////////////////////////////////////////////// // // Copyright 2026 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software. // ////////////////////////////////////////////////////////////////////////////// #pragma once #include "../../Core/Base.h" #include "../DrawingTypeDefs.h" // THIS CLASS WILL BE VISIBLE TO AN API CLIENT. // THIS HEADER FILE WILL BE GENERATED FROM NIDL. #include "../../Core/OSMacros.h" #ifdef DRAWINGXINTERFACE_EXPORTS # ifdef __COMPILING_ADSK_DRAWING_SHEETS_CPP__ # define ADSK_DRAWING_SHEETS_API XI_EXPORT # else # define ADSK_DRAWING_SHEETS_API # endif #else # define ADSK_DRAWING_SHEETS_API XI_IMPORT #endif namespace adsk { namespace drawing { /// !!!!! Warning !!!!! /// ! This is hidden and not officially supported /// !!!!! Warning !!!!! /// /// Provides access to the sheets in a drawing document. class Sheets : public core::Base { public: /// !!!!! Warning !!!!! /// ! This is hidden and not officially supported /// !!!!! Warning !!!!! /// /// Returns the number of sheets on the drawing. size_t count() const; ADSK_DRAWING_SHEETS_API static const char* classType(); ADSK_DRAWING_SHEETS_API const char* objectType() const override; ADSK_DRAWING_SHEETS_API void* queryInterface(const char* id) const override; ADSK_DRAWING_SHEETS_API static const char* interfaceId() { return classType(); } private: // Raw interface virtual size_t count_raw() const = 0; }; // Inline wrappers inline size_t Sheets::count() const { size_t res = count_raw(); return res; } }// namespace drawing }// namespace adsk #undef ADSK_DRAWING_SHEETS_API