updated requirements, Der ursprungspunkt der Blöcke wurde verändert, die virtuelle Umgebung wurde nicht richtig geladen

This commit is contained in:
2025-09-04 08:37:06 +02:00
parent 36648649a5
commit 4595d9b562
3 changed files with 10 additions and 6 deletions
+6
View File
@@ -323,7 +323,12 @@ def handle_omniflo(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols)
print(f"[WARN] Omniflo-Block '{blockname}' nicht in Bibliothek {lib_doc.filename}. Überspringe {teileid}.")
return
import_block(blockname, lib_doc, doc)
lib_block = lib_doc.blocks.get(blockname)
imported_block = doc.blocks.get(blockname)
if hasattr(lib_block.block.dxf, "base_point"):
imported_block.block.dxf.base_point = lib_block.block.dxf.base_point
if merkmale.get("Drehung")== 0:
bref = msp.add_blockref(blockname, (x, y), dxfattribs={"xscale": 1.0, "yscale":1.0,"rotation": merkmale.get("Drehung")})
else:
@@ -365,6 +370,7 @@ def main(csv_path: Path, lib_path: Path, cfg_path: Path,
# Neue Ziel­zeichnung (DXF R2018)
doc = ezdxf.new(dxfversion="R2018")
doc.header['$INSUNITS'] = 4 # Millimeter
msp = doc.modelspace()
# Höhe bestimmen für Koordinaten-Transformation
+1
View File
@@ -1 +1,2 @@
ezdxf==1.4.1
svg.path==7.0