#include "stdafx.h" //////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// // // BEGIN TestSucKiet command // #pragma region TestSucKiet command class CCommandTestSucKiet : public CRhinoCommand { public: CCommandTestSucKiet() = default; UUID CommandUUID() override { // {277CCDBC-7AD9-4129-A7FC-84D906AC944F} static const GUID TestSucKietCommand_UUID = { 0x277CCDBC, 0x7AD9, 0x4129, { 0xA7, 0xFC, 0x84, 0xD9, 0x06, 0xAC, 0x94, 0x4F } }; return TestSucKietCommand_UUID; } const wchar_t* EnglishCommandName() override { return L"TestSucKiet"; } CRhinoCommand::result RunCommand(const CRhinoCommandContext& context) override; }; // The one and only CCommandTestSucKiet object static class CCommandTestSucKiet theTestSucKietCommand; CRhinoCommand::result CCommandTestSucKiet::RunCommand(const CRhinoCommandContext& context) { CRhinoGetObject go; go.SetCommandPrompt(L"Select objects"); go.EnableSubObjectSelect(false); go.GetObjects(1, 0); CRhinoCommand::result rc = go.CommandResult(); if (rc == CRhinoCommand::success) { for (int i = 0; i < go.ObjectCount(); i++) { const CRhinoObject* obj = go.Object(i).Object(); if (obj) obj->Select(true); } } return rc; } #pragma endregion // // END TestSucKiet command // //////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////