-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Description
I'm trying to read block attributes:
from pyautocad import Autocad
acad = Autocad()
Reading other properties works fine:
In [89]: b.InsertionPoint
Out[89]: (3764.4951495785735, 745.3710248379173, 0.0)
However, when I want to query the attributes (which I'm actually interested in), I get an error message:
In [88]: b.GetAttributes()
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-88-a01693316a19> in <module>()
----> 1 b.GetAttributes()
C:\ProgramFiles\Python27\lib\site-packages\comtypes\automation.pyc in __ctypes_from_outparam__(self)
440 def __ctypes_from_outparam__(self):
441 # XXX Manual resource management, because of the VARIANT bug:
--> 442 result = self.value
443 self.value = None
444 return result
C:\ProgramFiles\Python27\lib\site-packages\comtypes\automation.pyc in _get_value(self, dynamic)
391 return value
392 elif self.vt & VT_ARRAY:
--> 393 typ = _vartype_to_ctype[self.vt & ~VT_ARRAY]
394 return cast(self._.pparray, _midlSAFEARRAY(typ)).unpack()
395 else:
Did some research on Google, but my knowledge of COM is just too low to help myself here..
lectrician1
Metadata
Metadata
Assignees
Labels
No labels