.. highlightlang:: us .. _objsetpen: OBJSetPen ========= .. index:: OBJSetPen .. us.tag OBJSetPen ENGLISH draw-set :ref:`OBJSetPen` sets the pen of an drawing object. The pen is used to draw the edge line of the object. .. function:: bool = OBJSetPen(hobj, hPen) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle, ellipse or layer (diagram) object. .. uparam:: hPen *hPen* is the handle of the pen. .. seealso:: :ref:`overview-drawing-objects`, :ref:`PenCreate` :sub:`id-928791`