.. _group__a3d__drawing__view:

############
Drawing View
############

Enumerations for drawing view type for use in the :c:struct:`~A3DDrawingViewData`\ structure


   :ref:`Drawing Sheet <group__a3d__drawing__sheet>`



   5.0


Entity type is :c:enumerator:`~kA3DTypeDrawingView`\ .

A local coordinate system can be applied on view, by setting :c:member:`A3DDrawingViewData::m_sOriginOnSheet <A3DDrawingViewData.m_sOriginOnSheet>`\ , :c:member:`A3DDrawingViewData::m_sOffsetLocation <A3DDrawingViewData.m_sOffsetLocation>`\ , :c:member:`A3DDrawingViewData::m_dScale <A3DDrawingViewData.m_dScale>`\ and :c:member:`A3DDrawingViewData::m_dAngle <A3DDrawingViewData.m_dAngle>`\ . To convert local view coordinates into local sheet coordinate space, you can use the pseudo function below.


::

   Matrix2DViewToSheetMatrix(A3DDrawingViewDataconst&sViewData)
   {
   Marix2DsMatrix
   
   sMatrix.SetAngle(sViewData.m_dAngle);
   sMatrix.Translate(sViewData.m_sOffsetLocation);
   sMatrix.Scale(sViewData.m_dScale);
   sMatrix.Translate(sViewData.m_sOriginOnSheet);
   
   returnsMatrix;
   }

**Parameters**


   **pDrawingView**\ : The input view.

   **pData**\ : Data of the view.


**Returns**


   ``A3D_SUCCESS``\ on success, or an error code on failure


.. rst-class:: kind-group kind-topic

.. rubric:: Topics
   :class: kind-group-title


.. rst-class:: api-xref-list


* :ref:`Drawing Clip Frame <group__a3d__drawing__clipframe>`

.. rst-class:: kind-group kind-record

.. rubric:: Structures
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:struct:`~A3DDrawingViewData`

.. rst-class:: kind-group kind-function

.. rubric:: Functions
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:func:`~A3DDrawingViewGet`
* :c:func:`~A3DDrawingViewCreate`

.. toctree::
   :maxdepth: 1
   :hidden:

   a3d_drawing_clipframe
   ../structures/A3DDrawingViewData
   ../functions/A3DDrawingViewGet
   ../functions/A3DDrawingViewCreate


