.. highlightlang:: us .. _objgetrect: OBJGetRect ========== .. index:: OBJGetRect .. us.tag OBJGetRect ENGLISH draw-get :ref:`OBJGetRect` returns the position of the lower left and the upper right corner of a drawing object in centimeters. .. function:: rvRect = OBJGetRect(hobj) .. us.return **Return Value** *rvPosSize* is a vector with 4 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvPosSize[1] - x-coordinate of the left corner in centimeters * - rvPosSize[2] - y-coordinate of the bottom corner in centimeters * - rvPosSize[3] - x-coordinate of the right corner in centimeters * - rvPosSize[4] - y-coordinate of the top corner in centimeters .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle, ellipse or layer (diagram) object. .. seealso:: :ref:`overview-drawing-objects`, :ref:`OBJSetRect`, :ref:`OBJGetPosSize`, :ref:`OBJSetPosSize` :sub:`id-1930722`