Get entity starting from point 0,0 #1217
Unanswered
superlogan72
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello i have a dxf i Autocad is all with positive start and end point :
Reading the dxf I get this:
[('a', 0.0, 19.52642698097288, Vec3(301.53703630252323, 298.9848045280167, 0.0), Vec3(269.76999834797175, 483.6029692460057, 0.0), 19.52642698097288), ('l', 0.0, -5.68e-14, 298.9848045280168, -5.68e-14), ('a', 19.5264269809729, 52.87373394555312, Vec3(269.76999834797414, 483.6029692459985, 0.0), Vec3(197.56881445877247, 582.2530862398144, 0.0), 33.34730696458022), ('a', 52.87373394555312, 90.0, Vec3(197.56881445877315, 582.2530862398138, 0.0), Vec3(150.7685181512616, 597.9696090560334, 0.0), 37.12626605444688), ('a', 90.0, 127.1262660544469, Vec3(150.7685181512616, 597.9696090560334, 0.0), Vec3(103.96822184375003, 582.2530862398138, 0.0), 37.1262660544469), ('a', 127.1262660544469, 160.4735730190271, Vec3(103.96822184375083, 582.2530862398144, 0.0), Vec3(31.767037954549153, 483.60296924599857, 0.0), 33.3473069645802), ('a', 160.4735730190271, 180.0, Vec3(31.767037954551597, 483.60296924600607, 0.0), Vec3(0.0, 298.98480452801675, 0.0), 19.5264269809729), ('a', 180.0, 199.5264269809728, Vec3(0.0, 298.98480452801675, 0.0), Vec3(31.767037954551256, 114.3666398100284, 0.0), 19.526426980972786), ('a', 199.5264269809728, 232.8737339455531, Vec3(31.76703795454901, 114.36663981003525, 0.0), Vec3(103.9682218437508, 15.716522816219111, 0.0), 33.347306964580326), ('a', 232.8737339455531, 270.0, Vec3(103.96822184375013, 15.716522816219616, 0.0), Vec3(150.76851815126167, -4.263256414560601e-14, 0.0), 37.12626605444689), ('a', 270.0, 307.1262660544469, Vec3(150.76851815126167, -4.263256414560601e-14, 0.0), Vec3(197.56881445877326, 15.716522816219594, 0.0), 37.12626605444689), ('a', 307.1262660544468, 340.4735730190271, Vec3(197.56881445877218, 15.716522816218827, 0.0), Vec3(269.76999834797425, 114.36663981003498, 0.0), 33.347306964580355), ('a', 340.4735730190271, 360, Vec3(269.76999834797175, 114.36663981002772, 0.0), Vec3(301.53703630252323, 298.9848045280167, 0.0), 19.52642698097287)]
The first item of a tuple is 'a' for arc then start_angle and_angle coordinates etc. and 'l' for line with the coordinates :
I need to get the data starting from point (0,0) so the right is :
and so on
There is a way to get it ordered??
Thanks
Beta Was this translation helpful? Give feedback.
All reactions