Feb-26-2017, 11:56 AM
(This post was last modified: Feb-26-2017, 11:59 AM by ichabod801.)
Hi
i wrote the below code to return the start point of the lines in drawing, but it return error:
i wrote the below code to return the start point of the lines in drawing, but it return error:
import dxfgrabber dwg = dxfgrabber.readfile("test.dxf") print("DXF version:{} ".format(dwg.dxfversion)) all_lines = [entity for entity in dwg.entities if entity.line.start] for line in all_lines: print(line.start)
Error:Traceback (most recent call last):
all_lines = [entity for entity in dwg.entities if entity.line.start]
AttributeError: 'Line' object has no attribute 'line'