Gift wrote: ↑Mon Jun 27, 2022 7:03 pm
How do I know that the user has created a polyline, or by chance two lines meet.
Code: Select all
wire = Part.makePolygon([App.Vector(0, 10, 0), App.Vector(0, 0, 0), App.Vector(10, 0, 0)])
wire.Edges
if the user has a Draft.Wire or a Part.Wire, it has to be translated to lwpoly in DXF, when a user create a Wire, he wants that lines will "stay together" even in the DXF file.
same as in DXF if a user has created a polyline, I think that even in FC these lines have to "stay together"
Probably I'm wrong, but I don't see where is the problem?
In the CAM I'have used when I create a profile in LibreCAD, and saved it in DXF it is imported as a polyline in the CAM software.
Same the inverse, polylines in the CAM where exported as single entities in the DXF single lines have their own "object".
I haven't used it frequently in last times, but this behaviour seems pretty "natural".
I admit that I have not readed DXF specifications, so probably I'm wrong.
If this is the case, I apologize.
Carlo D.