.. highlightlang:: us .. _objsetposwc: OBJSetPosWC =========== .. index:: OBJSetPosWC .. us.tag OBJSetPosWC ENGLISH draw-set :ref:`OBJSetPosWC` sets the position of a drawing object in diagram coordinates (World Coordinates). For line objects the start and end point will be set. .. function:: bool = OBJSetPosWC(hobj, rvPosWC) .. us.return **Return Value** *bool* is TRUE (1) if the function was successful, and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle or ellipse object. .. uparam:: rvPosWC *rvPosWC* is a vector with 2 elements. For line objects *rvPosWC* 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 .. seealso:: :ref:`overview-drawing-objects`, :ref:`OBJGetPosWC`, :ref:`OBJSetRefPointWC` :sub:`id-765209`