Fallbackpfad für OMniflo Elemente von 2D/3D, da aktuell nur 2D definiert
This commit is contained in:
@@ -22,6 +22,9 @@
|
|||||||
;; insert-pt : Einfuegepunkt als Liste (x y z)
|
;; insert-pt : Einfuegepunkt als Liste (x y z)
|
||||||
;; hoehe-str : Hoehe als String (fuer HOEHE-Attribut)
|
;; hoehe-str : Hoehe als String (fuer HOEHE-Attribut)
|
||||||
;; drehung-str : Drehung als String (fuer DREHUNG-Attribut)
|
;; drehung-str : Drehung als String (fuer DREHUNG-Attribut)
|
||||||
|
;; Pfadaufloesung (inkl. DWG- und 2D/3D-Dimensionsfallback) wie im
|
||||||
|
;; produktiven Einfuege-/Edit-Pfad ueber omni:omniflo-datei-finden
|
||||||
|
;; (OmniModulInsert.lsp) - nicht mehr lokal dupliziert.
|
||||||
(defun omni:test-insert (sivasnr-str insert-pt hoehe-str drehung-str /
|
(defun omni:test-insert (sivasnr-str insert-pt hoehe-str drehung-str /
|
||||||
dxf-pfad omniflo-pfad blockEnt angleDeg)
|
dxf-pfad omniflo-pfad blockEnt angleDeg)
|
||||||
(setq omniflo-pfad (getenv "DXFM_OMNIFLO"))
|
(setq omniflo-pfad (getenv "DXFM_OMNIFLO"))
|
||||||
@@ -31,10 +34,11 @@
|
|||||||
nil
|
nil
|
||||||
)
|
)
|
||||||
(progn
|
(progn
|
||||||
(setq dxf-pfad (strcat omniflo-pfad "/" sivasnr-str ".dxf"))
|
(setq dxf-pfad (omni:omniflo-datei-finden sivasnr-str omniflo-pfad))
|
||||||
(if (not (findfile dxf-pfad))
|
(if (not dxf-pfad)
|
||||||
(progn
|
(progn
|
||||||
(princ (strcat "\n[TEST_OMNIFLO] WARNUNG: DXF nicht gefunden: " dxf-pfad))
|
(princ (strcat "\n[TEST_OMNIFLO] WARNUNG: DXF nicht gefunden: "
|
||||||
|
omniflo-pfad "/" sivasnr-str ".dxf"))
|
||||||
nil
|
nil
|
||||||
)
|
)
|
||||||
(progn
|
(progn
|
||||||
|
|||||||
@@ -46,6 +46,9 @@
|
|||||||
|
|
||||||
|
|
||||||
;; --- Bogen-DXF non-interaktiv an gegebenem Punkt einfuegen ---
|
;; --- Bogen-DXF non-interaktiv an gegebenem Punkt einfuegen ---
|
||||||
|
;; Pfadaufloesung (inkl. DWG- und 2D/3D-Dimensionsfallback) wie im
|
||||||
|
;; produktiven Einfuege-/Edit-Pfad ueber omni:omniflo-datei-finden
|
||||||
|
;; (OmniModulInsert.lsp) - nicht mehr lokal dupliziert.
|
||||||
(defun omnistr:insert-bogen (sivasnr-str insert-pt hoehe-str drehung-str /
|
(defun omnistr:insert-bogen (sivasnr-str insert-pt hoehe-str drehung-str /
|
||||||
dxf-pfad omniflo-pfad blockEnt angleDeg)
|
dxf-pfad omniflo-pfad blockEnt angleDeg)
|
||||||
(dbgf "omnistr:insert-bogen")
|
(dbgf "omnistr:insert-bogen")
|
||||||
@@ -60,10 +63,10 @@
|
|||||||
nil
|
nil
|
||||||
)
|
)
|
||||||
(progn
|
(progn
|
||||||
(setq dxf-pfad (strcat omniflo-pfad "/" sivasnr-str ".dxf"))
|
(setq dxf-pfad (omni:omniflo-datei-finden sivasnr-str omniflo-pfad))
|
||||||
(if (not (findfile dxf-pfad))
|
(if (not dxf-pfad)
|
||||||
(progn
|
(progn
|
||||||
(dbgmsg (strcat "WARNUNG: DXF nicht gefunden: " dxf-pfad))
|
(dbgmsg (strcat "WARNUNG: DXF nicht gefunden: " omniflo-pfad "/" sivasnr-str ".dxf"))
|
||||||
nil
|
nil
|
||||||
)
|
)
|
||||||
(progn
|
(progn
|
||||||
|
|||||||
Reference in New Issue
Block a user