title: TrueColor property in VBA AutoCAD doesn't work
body: <p>I would like to change TrueColor property of a line object in AutoCAD 2013 using VBA.</p>
  
  <p>I used the code which I found in Developer's guide, but it won't work.</p>
  
  <p>The code is:</p>
  
  <pre><code>Dim VozniCrtaDesna As AcadLine
  Set VozniCrtaDesna = ThisDrawing.ModelSpace.AddLine(Zero, KoncnaDesnaTocka)
  
  Dim color As AcadAcCmColor
  Set color = AcadApplication.GetInterfaceObject("AutoCAD.AcCmColor.16")
  Call color.SetRGB(80, 100, 244)
  VozniCrtaDesna.TrueColor = color
  
  VozniCrtaDesna.Update
  </code></pre>
  
  <p>It throws an error:</p>
  
  <pre><code>Run-time error: '-2147221005 (800401f3)':
  Problem in loading application
  </code></pre>
  
  <p>Any ideas what the problem would be?</p>
  
  <p>Thanks.
  Špela</p>