[FIX] export.lsp: klare Fehlermeldung statt Lisp-Crash bei fehlendem DXFM_LIB
Ist BricsCAD nicht ueber bin/start_briscad.bat gestartet worden, ist DXFM_LIB in der Sitzung nicht gesetzt. Bisher liess das (strcat (getenv "DXFM_LIB") ...) mit "bad argument type <NIL> ; expected <STRING>" abstuerzen. Jetzt wird das vorher geprueft und ueber ssg-textf (exp-dxfm-lib-missing, de/en) gemeldet; JSON/CSV-Sammlung laeuft weiter, nur der Python-Aufruf entfaellt.
This commit is contained in:
@@ -499,6 +499,7 @@
|
||||
"exp-json-written": "\n[%1] JSON written: %2",
|
||||
"exp-calling-python": "\n[%1] Calling Python...",
|
||||
"exp-export-started": "\n[%1] Export started: %2",
|
||||
"exp-dxfm-lib-missing": "\n[%1] ERROR: Environment variable DXFM_LIB is not set - BricsCAD was probably not started via bin/start_briscad.bat. CSV/JSON were written, the Python call is skipped.",
|
||||
"exp-python-not-found": "\n[%1] ERROR: Python script not found: %2",
|
||||
"exp-python-exe": "\n[%1] Interpreter: %2",
|
||||
"exp-export-done": "\n[%1] Export finished: %2",
|
||||
|
||||
Reference in New Issue
Block a user