title: How can I work with cm units in illustrator CC extendscript?
body: <p>I would like to draw a simple rectangle in cm. </p>
  
  <p>So far I have done that :</p>
  
  <pre><code>var units = 4; 
  app.preferences.setIntegerPreference("rulerType", units);
  app.preferences.setIntegerPreference("strokeUnits", units)
  </code></pre>
  
  <p>And indeed when I check in edit/preferences/unit menu, it shows units in cm</p>
  
  <p>But When I draw a rectangle :</p>
  
  <pre><code>var rectangle1 = doc.pathItems.rectangle(posTop, posLeft, myWidth, myHeight); 
  </code></pre>
  
  <p>myWidth and myHeight don't fit the cm rules.</p>
  
  <p>Any help ?</p>
  
  <p>thanks</p>
  
  <p>Fransua</p>