reclosedev / pyautocad

AutoCAD Automation for Python ⛺
http://pypi.python.org/pypi/pyautocad/
BSD 2-Clause "Simplified" License
506 stars 143 forks source link

pyautocad - windows 8 (64 bits) and AutoCAD 2013 #3

Open lstrassacappa opened 11 years ago

lstrassacappa commented 11 years ago

I have a new computer with windows 8 (64 bits) and I installAutoCAD 2013.

I´ve tried a routine that used to work in windows 7 (32 bits) + AutoCAD 2008.....here is the error:

Exception WindowsError: 'exception: stack overflow' in <bound method tagVARIANT.del of VARIANT(vt=0x8, u'Digite ABA da cantoneira: ')> ignored Exception WindowsError: 'exception: access violation writing 0x0000000000040000' in <bound method BSTR.del of BSTR(None)> ignored

reclosedev commented 11 years ago

Make sure that VBA Enabler is installed, if not you can get it here http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12715668&linkID=9240618 Also, try to clean comtypes cache by clearing following directory: Python27\Lib\site-packages\comtypes\gen\

lstrassacappa commented 11 years ago

Nothing....the same error....

lstrassacappa commented 11 years ago

The error occurs in api.py (pyautocad) at this point:

@property
def doc(self):
    """ Returns `ActiveDocument` of current :attr:`Application`"""
    return self.app.ActiveDocument   # this point ???

Do you have any ideia?

reclosedev commented 11 years ago

Try to delete or to comment out line 20 in Python27\Lib\site-packages\pyautocad\api.py: comtypes.client.GetModule(['{D5C3CB6F-AA0A-4D45-B02D-CF2974EFD4BE}', 1, 0])

lstrassacappa commented 11 years ago

Solved.....but still in test. I remove Python (64 bits) and then install the 32 bits version!!!