omniflo Cleanup Routine rausgeworfen. Übernimmt jetzt das Zentralle all_tests.lsp. Ansonsten geht der omniflo csv Export nicht mehr. Kreisel Basisdatensatz entfernt. Nicht mehr in der Form zum test der Kreiselmodule nötig
This commit is contained in:
@@ -23,35 +23,7 @@ TESTDATA_DIR = os.path.join(TESTS_DIR, "testdata")
|
||||
OUTPUT_DIR = os.path.join(TESTS_DIR, "output")
|
||||
|
||||
|
||||
def create_kreisel_testbase():
|
||||
"""Erzeugt Basis-DXF fuer Kreisel-Tests mit Hilfslinien."""
|
||||
doc = ezdxf.new("R2018")
|
||||
msp = doc.modelspace()
|
||||
|
||||
z = 2500.0
|
||||
|
||||
# Horizontale Linienpaare (Abstand 5000mm in Y-Richtung)
|
||||
msp.add_line((0, 0, z), (2000, 0, z),
|
||||
dxfattribs={"layer": "S_LP", "color": 1})
|
||||
msp.add_line((0, 5000, z), (2000, 5000, z),
|
||||
dxfattribs={"layer": "S_LP", "color": 1})
|
||||
|
||||
# Vertikale Linienpaare (Abstand 5000mm in X-Richtung)
|
||||
msp.add_line((0, 0, z), (0, 2000, z),
|
||||
dxfattribs={"layer": "S_LP", "color": 1})
|
||||
msp.add_line((5000, 0, z), (5000, 2000, z),
|
||||
dxfattribs={"layer": "S_LP", "color": 1})
|
||||
|
||||
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
||||
out_path = os.path.join(OUTPUT_DIR, "kreisel_testbase.dxf")
|
||||
doc.saveas(out_path)
|
||||
print(f"[testbase] Kreisel-Basis-DXF erstellt: {out_path}")
|
||||
return out_path
|
||||
|
||||
|
||||
MODULES = {
|
||||
"kreisel": create_kreisel_testbase,
|
||||
}
|
||||
MODULES = {}
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user