Happy Holidays to all;
I am stumped by a "Invalid Input" for my OMON setting in the following code:
[Lisp Code]
(defun c:DonR08dimStdldr (/ omon)
(setq omon (setvar "orthomode" 1)) ;set orthomode on
(DonRdimStd08)
(setq DonRosm (getvar "osmode"))
(setq DonRorm (getvar "orthomode"))
(if (not DonRal) (command "-layer" "t" "C-TEXT-DIMS" "on" "C-TEXT-DIMS"
"m" "C-TEXT-DIMS" "c" "2" "C-TEXT-DIMS" ""))
;set OSNAP and ORTHOMODE to NONE
(command "osmode" "0")
(command "orthomode" "0")
(command "leader" pause pause omon pause "" "" "N")
(setvar "cmdecho" 1)
;return ucs to world
(setvar "cmdecho" 0)
(DonRucsw)
;set OSNAP and ORTHOMODE to previous setting
(setvar "osmode" DonRosm)
(setvar "orthomode" DonRorm)
(princ)
)
[Lisp Code]
I am attempting to draw the first two points of a three point leader with
ORTHOMODE off, set ORTHOMODE on for the last point, and then return
ORTHOMODE to its previous setting prior to starting the Leader command. In
running the above code the first two points are set properly, then I receive
the "Invalid Input", set the last point and the command finishes. My interim
WA is to reach up and hit F8 prior to setting the last point.
[Command History]
Command: (if (not c:DonRdimStd08) (load "DonRdimStd08.lsp"))
C:DONR08DIMSTDLDR
Command: DonR08dimStdldr
Dimension style is STANDARD.
Invalid Input.
Ortho on> Verifying UCS set to WORLD.
[Command History]
Any help would be greatly appreciated.
--
Don Reichle
"King Of Work-Arounds"
Barghausen Consulting Engineers
Kent, WA USA
LDT3 - SP1/CD3 - SP1
On WIN2K SP4
Dell 1.6 Ghz P4
512MB RAM
NVIDIA 32MB AGP