.. highlightlang:: us .. _objgetposwc: OBJGetPosWC =========== .. index:: OBJGetPosWC .. us.tag OBJGetPosWC ENGLISH draw-get :ref:`OBJGetPosWC` returns the position of a drawing object in diagram coordinates (World Coordinates). .. function:: rvPosWC = OBJGetPosWC(hobj) .. us.return **Return Value** *rvPosWC* *rvPosWC* is a vector with 2 elements. For line objects the vector has 4 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvPosWC[1] - x-coordinate in diagram coordinates. * - rvPosWC[2] - y-coordinate in diagram coordinates. * - rvPosWC[3] - x-coordinate of the second line point in diagram coordinates. * - rvPosWC[4] - y-coordinate of the second line point in diagram coordinates. .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle or ellipse object. .. seealso:: :ref:`OBJSetPosWC` :sub:`id-489939`