Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dxfgrabber
#1
hi ,
would like to know why this code is not working, i would like to get the start point of a line in a drawing;

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)
Reply
#2
Please, use code tags and also use meaningful Thread titles. It is confusing and unclear if all your threads are named just dxfgrabber. Also post full Traceback. 'Not working' is really unclear
Reply
#3
Quote:this code is not working
How is it not working?
details please
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  dxfgrabber elhetch 5 6,545 Mar-28-2017, 05:28 PM
Last Post: nilamo
  dxfgrabber-return lines start point elhetch 3 4,672 Feb-26-2017, 12:28 PM
Last Post: buran
  dxfgrabber elhetch 7 8,605 Feb-21-2017, 11:15 AM
Last Post: elhetch

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020