Replies: 3 comments 2 replies
-
Everyone has to start somewhere but this is not the forum to get help of this kind. I can't even point you in the direction you should go if you don't have any Python experience. If you have enough experience with Python, there is documentation on As on StackOverflow, I'd like to see your code first to see that you've at least tried to solve the problem. But you can also look for someone on Fiverr who will solve your problem for a fee. |
Beta Was this translation helpful? Give feedback.
-
it is OK for my work. |
Beta Was this translation helpful? Give feedback.
-
Question a) is at least related to For that exist a handy groupby function/method: for layer_name, entities in msp.groupby("layer").items():
print(f"processing entities of layer '{layer_name}'")
for e in entities:
if e.dxftype() == "LINE":
print(e) The The rest of the questions is basic Python knowledge which you have to learn e.g. if you know what a Python groups = msp.groupby("layer")
for layer_name in sorted(groups.keys()):
print(f"processing entities of layer '{layer_name}'")
for e in groups[layer_name]:
if e.dxftype() == "LINE":
print(e)
|
Beta Was this translation helpful? Give feedback.
-
Please, how can I export the coordinates of some dxf-drawings to a table
-from all 2D-Polylines
-sorted by spezified layers
-sorted by closed vs. open
to a simple txt-list
numbered by starting-point to endpoint
for example a rectancgle with the coordinates x/y p1=(1/1) p2=(1/3), p3=(2/4), p4=(2/2)
1 1 1
2 1 3
3 2 4
4 2 2
I ve tried dxfgrabber but didn't succeed. Will change to ezdxf but have no idea an no skills with python-skripting
greetings gina
Beta Was this translation helpful? Give feedback.
All reactions