title: Mtext. Autolisp returns "Invalid point" but typing the point in the command windows works
body: <p>I'm new to autolisp and setting my first macro. I want to create a rectangle, label it with some text centered on it and then convert both entities into a block (this is for optimizing the loading of packaged items into a trailer).</p>
  
  <p>I've succeed building the rectangle but I'm stuck on the mtext part. This is what I have done so far:</p>
  
  <pre><code>(defun c:caja  ()
  
      ;Switch OFF System Variables
  
      (setvar "osmode" 0)
      ;Switch OFF snap
  
      ;(setvar "blipmode" 0)
      ;Switch OFF Blipmode
  
  *******************************************************
      ;User Inputs
  
  
      (setq pt1 (getpoint "\nSelect start point: "));lower left corner 
      (setq Long (getdist "\nLength m : "))
      (setq Ancho (getdist "\nWidth  : "))
      ;(setq Alto (getdist "\nHeight  : "))
      ;(setq Peso (getdist "\nWeight  : "))
  
  
  *******************************************************
  (setq pt2 (polar pt1 0 Long )) ;lower right corner
  (setq pt3 (polar pt2 (* pi 0.5) Ancho));upper right corner
  
  *******************************************************
  
  (command"rectang" pt1 pt3"")
  
  (command "mtext" "!pt1" "!pt3" "potato")
  </code></pre>
  
  <p>When executing the last line of the code I get:<br>
  Invalid point. ; error: Function cancelled.
  However autocad lets me keep working on the mtext command and asks me to "specify first corner". If I type !pt1 there it Works.</p>
  
  <p>My understanding is that in autolisp I must write between quotes "" every answer that I would normally type in the command prompt so I don't know what I'm doing wrong.</p>