<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<p>Hi,</p>
<p>may be you can try following option.</p>
<font size="2">
<p>set line 0 1 6</p>
<p>query w2xy 65 8</p>
<p>xlo=subwrd(result,3)</p>
<p>ylo=subwrd(result,6)</p>
<p>say'(xlo,ylo)=('xlo','ylo')'</p>
<p>query w2xy 95 35</p>
<p>xhi=subwrd(result,3)</p>
<p>yhi=subwrd(result,6)</p>
<p>say'(xhi,yhi)=('xhi','yhi')'</p>
<p>draw rec 'xlo''ylo''xhi''yhi' </p>
<p></p>
</font><font size="2">
<br />
<br />Sachin Ghude
<br />
<br /><b>---------- Original Message -----------</b>
<br />From: Eduardo Agosta Scarel <eduardo.agosta@GMAIL.COM>
<br />To: GRADSUSR@LIST.CINECA.IT
<br />Sent: Thu, 27 Mar 2008 07:55:36 -0300
<br />Subject: to draw a rectangle
<br />
<br />> Hello Dear Grads' Users
<br />>
<br />> I am trying to draw a rectangle doing as follows:
<br />>
<br />> 'set gxout contour'
<br />> 'set cthick 20'
<br />> 'set cint 5.0'
<br />> 'set ccolor 1'
<br />> 'd hgtcom-hgtc'
<br />>
<br />> x0=-65
<br />> y0=-28
<br />> x1=-70
<br />> y1=-38
<br />> 'q w2xy 'x0' 'y0
<br />> nx0 = subwrd(result,1)
<br />> ny0 = subwrd(result,2)
<br />> 'q w2xy 'x1' 'y1
<br />> nx1 = subwrd(result,1)
<br />> ny1 = subwrd(result,2)
<br />> 'draw rec 'nx0' 'ny0' 'nx1' 'ny1
<br />>
<br />> But it doesn't work!
<br />> What's wrong?
<br />>
<br />> Thanks in advance.
<br />>
<br />> Eduardo.
<br clear="all" />
<br />>
<br /><b>------- End of Original Message -------</b>
<br /></font>
</BODY>
</HTML>