hohlraum / gdsCAD

A simple but powerful Python package for creating photolithography masks in the GDSII format.
GNU General Public License v3.0
89 stars 52 forks source link

DXF Import #46

Closed floRoth closed 7 years ago

floRoth commented 8 years ago

Hi, I am trying to import some dxf and convert it to gds. But always the same error message pops up:

I use just this code dxf=core.DxfImport('jcsample.dxf', scale=1.0)

runfile('C:/Users/np/Documents/Python Scripts/untitled0.py', wdir='C:/Users/np/Documents/Python Scripts') Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/np/Documents/Python Scripts/untitled0.py', wdir='C:/Users/np/Documents/Python Scripts')

File "C:\Program Files\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile execfile(filename, namespace)

File "C:\Program Files\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc)

File "C:/Users/np/Documents/Python Scripts/untitled0.py", line 17, in if isinstance(e, dxfgrabber.entities.LWPolyline):

AttributeError: 'module' object has no attribute 'entities'

I am using Anaconda2 (Pyhton 2.4)

Thanks for the help Flo

hohlraum commented 7 years ago

Fixed in 096e8bd.