[200] DXF-Export: Stifte je Element (Farbe 420/62, Strichstärke 370) und Schnitt/Ansicht als DXF/DWG (App-Dialog, CLI --format)

This commit is contained in:
Claude committed 2026-11-12 09:08:15 +00:00
1 parent 5ca168cb87
commit c384174f8a
15 files changed
+396 -33

No files matched your search

+4
View File
@@ -28,6 +28,10 @@ def main(path: str) -> int:
for e in msp:
t = e.dxftype()
item = {"type": t, "layer": e.dxf.layer}
# [200] Stift je Element: eigene Farbe (True-Color 420 / ACI 62) und Strichstärke (370), sonst nach Ebene.
item["trueColor"] = list(e.rgb) if e.dxf.hasattr("true_color") and t != "HATCH" else None
item["aci"] = e.dxf.color if e.dxf.hasattr("color") else None
item["lineweight"] = e.dxf.lineweight if e.dxf.hasattr("lineweight") else None
if t == "LINE":
item["pts"] = [[e.dxf.start.x, e.dxf.start.y], [e.dxf.end.x, e.dxf.end.y]]
elif t == "LWPOLYLINE":