title: Autocad Comtypes. Error when using the command Explode()
body: <p>I inserted a block into a drawing. When using the command Explode() it gives me a KeyError: 9.
  How can I fix this error?</p>
  <pre><code>import array
  import comtypes
  from comtypes import COMError
  from comtypes.client import CreateObject,GetModule, GetActiveObject
  
  try:
      acad = GetActiveObject(&quot;AutoCAD.Application&quot;)
      print (&quot;AutoCAD is Active&quot;)
      print (&quot;########&quot;)
  except(OSError, COMError): #If AutoCAD isn't running, run it
      acad = CreateObject(&quot;AutoCAD.Application&quot;,dynamic=True)
      print (&quot;AutoCAD is successfuly Opened&quot;)
      print (&quot;########&quot;)
  
  filename = r&quot;R:\CMC Cad 2020\Templates\CP20 IMPERIAL.dwt&quot; 
  doc = acad.Documents.Open(filename) 
  
  files = r&quot;M:\S20 A.dwg&quot;
  insertionPnt = array.array('d', [0,0,0])
  blockI = doc.ModelSpace.InsertBlock(insertionPnt, files, 1, 1, 1, 0) 
  acad.visible = True
  blockE = blockI.Explode()
  </code></pre>
  <p>This is the error shown</p>
  <p>AutoCAD is successfuly Opened
  ########
  Traceback (most recent call last):
  File &quot;m:\Andres\Automation project\Python\Test\TestNo11_Comtypes.py&quot;, line 22, in 
  blockE = blockI.Explode()
  File &quot;C:\Users\andres\AppData\Local\Programs\Python\Python39\lib\site-packages\comtypes\client\lazybind.py&quot;, line 182, in caller
  return self._comobj._invoke(descr.memid, descr.invkind, 0, *args)
  File &quot;C:\Users\andres\AppData\Local\Programs\Python\Python39\lib\site-packages\comtypes\automation.py&quot;, line 730, in _invoke<br />
  return var._get_value(dynamic=True)
  File &quot;C:\Users\andres\AppData\Local\Programs\Python\Python39\lib\site-packages\comtypes\automation.py&quot;, line 457, in _get_value
  typ = _vartype_to_ctype[self.vt &amp; ~VT_ARRAY]
  KeyError: 9</p>