Merge branch 'master' of https://gitea.schoenenberger.de/Schoenenberger_Systeme_GmbH/dxfmakros
This commit is contained in:
+15
-17
@@ -75,7 +75,7 @@
|
||||
y-offset y-abstand idx
|
||||
anz-gebaut anz-nicht-gebaut results-list
|
||||
startpunkt vf-nummer hoehe-von hoehe-bis lastEnt
|
||||
tests-out-dir old-dxfm-results)
|
||||
sub-ent sub-typ)
|
||||
|
||||
;; Bibliothek initialisieren (laedt Block-Library und extrahiert Masse)
|
||||
(if (not *lib-initialized*)
|
||||
@@ -103,7 +103,7 @@
|
||||
;; Konfiguration aus erstem Eintrag (ohne test_id)
|
||||
(setq cfg (car testdaten))
|
||||
(setq y-abstand (ssg-val cfg "y_abstand"))
|
||||
(if (or (null y-abstand) (= y-abstand 0)) (setq y-abstand 400))
|
||||
(if (or (null y-abstand) (= y-abstand 0)) (setq y-abstand 800))
|
||||
|
||||
;; Nur Eintraege mit test_id sind Testfaelle
|
||||
(setq tests
|
||||
@@ -175,6 +175,19 @@
|
||||
(/ L_GF 2.0) (/ L_GF 2.0)
|
||||
richtung best-winkel startpunkt lastEnt 0.0)
|
||||
|
||||
;; lastEnt hinter den SEQEND des VF-Blocks schieben.
|
||||
;; Ohne diesen Schritt wuerde entnext vom INSERT-Entity
|
||||
;; in die ATTRIB-Kette des gerade erstellten VF-Blocks
|
||||
;; springen und diese beim naechsten _.-BLOCK-Aufruf
|
||||
;; in den neuen Block verschieben (Datenverlust).
|
||||
(setq lastEnt (entlast))
|
||||
(setq sub-ent (entnext lastEnt))
|
||||
(while (and sub-ent
|
||||
(not (equal (cdr (assoc 0 (entget sub-ent))) "SEQEND")))
|
||||
(setq lastEnt sub-ent)
|
||||
(setq sub-ent (entnext lastEnt)))
|
||||
(if sub-ent (setq lastEnt sub-ent))
|
||||
|
||||
(setq results-list (cons
|
||||
(foerderer:test-result-json test-id richtung deltaL deltaH
|
||||
"GEBAUT" best-winkel L_GF L_VF)
|
||||
@@ -205,21 +218,6 @@
|
||||
;; Ergebnisse in globaler Variable speichern
|
||||
(setq *foerderer-test-results* (reverse results-list))
|
||||
|
||||
;; CSV- und Sivas-Export nach tests/output/
|
||||
(setq tests-out-dir (strcat (getenv "DXFMAKRO") "/tests/output"))
|
||||
(vl-mkdir tests-out-dir)
|
||||
(setq old-dxfm-results (getenv "DXFM_RESULTS"))
|
||||
(setenv "DXFM_RESULTS" tests-out-dir)
|
||||
|
||||
(princ "\n================================================================")
|
||||
(princ "\n[TEST_FOERDERER] CSV-Export -> foerderer_export.csv")
|
||||
(csv:run-export "FOERDERER_CSV" "export_csv.py" "foerderer_export.csv")
|
||||
|
||||
(princ "\n[TEST_FOERDERER] Sivas-Export -> foerderer_sivas.csv")
|
||||
(csv:run-export "FOERDERER_SIVAS" "export_sivas.py" "foerderer_sivas.csv")
|
||||
|
||||
(setenv "DXFM_RESULTS" (if old-dxfm-results old-dxfm-results ""))
|
||||
|
||||
(ssg-end)
|
||||
(princ "\n================================================================")
|
||||
(princ "\n TEST_FOERDERER abgeschlossen.")
|
||||
|
||||
Reference in New Issue
Block a user