#pragma once #include "DbBlockAction.h" /** \details Block action that creates a rectangular grid of entities, cloning it's selection set with a vertical and a horizontal offset */ class DYNBLOCKS_EXPORT OdDbBlockArrayAction : public OdDbBlockAction { public: ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockArrayAction); /** \details Default constructor */ OdDbBlockArrayAction(); /** \details Returns the horizontal offset */ double columnOffset() const; /** \details Returns the vertical offset */ double rowOffset() const; /** \details Sets the horizontal offset */ void setColumnOffset(double); /** \details Sets the vertical offset */ void setRowOffset(double); /** \details Event fired by the block editor at the end of the opening */ void onBeginEditEnded(OdDbObjectId entityId, OdDbObjectId blockId) override; /** \details Event fired by the block editor at the beginning of the block editor closing */ void onEndEditStarted(OdDbObjectId entityId, OdDbObjectId blockId) override; }; typedef OdSmartPtr OdDbBlockArrayActionPtr;