reclosedev / pyautocad

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

Error when trying example usage. #18

Open vaish1234567 opened 6 years ago

vaish1234567 commented 6 years ago

My autocad object has created well but getting error on acad.prompt(). Following is the error :

acad.prompt("Hello")
Hello
Traceback (most recent call last):
File "", line 1, in
File "c:\users\snehal\appdata\local\temp\easy_install-lipjer\pyautocad-0.2.0-py2.7-win32.egg.tmp\pyautocad\api.py", line 162, in prompt
File "c:\users\snehal\appdata\local\temp\easy_install-lipjer\pyautocad-0.2.0-py2.7-win32.egg.tmp\pyautocad\api.py", line 74, in doc
File "c:\users\snehal\appdata\local\temp\easy_install-lipjer\pyautocad-0.2.0-py2.7-win32.egg.tmp\pyautocad\api.py", line 63, in app
File "C:\Python27\lib\site-packages\comtypes-1.1.3-py2.7.egg\comtypes\client__init__.py", line 173, in GetActiveObject
clsid = comtypes.GUID.from_progid(progid)
File "C:\Python27\lib\site-packages\comtypes-1.1.3-py2.7.egg\comtypes\GUID.py", line 78, in from_progid
_CLSIDFromProgID(unicode(progid), byref(inst))
File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -2147221005] Invalid class string

Please help me solving this issue . I need it on urgent basis