PDA

View Full Version : UCS LISP macros not working in AutoCAD 2007



pwilson.112560
2006-11-28, 10:27 PM
hi all -

i'm trying to recreate a short lisp routine i had on an old computer that's now dead - but it's not working in ACAD 2007. here's the routine:

(defun c:vv ( )
(command “ucs” “w”)

(defun c:cc ( )
(command "ucs" "ob" pause)


CC is used to change the ucs to an object, and VV is used to change ucs back to world UCS. neither of the commands are working, though - and i've loaded the lsp routine through tools-load, and my text window says that the commands are unknown. help!

thanks,
pete wilson

sinc
2006-11-28, 10:41 PM
hi all -

(defun c:vv ( )
(command “ucs” “w”)

(defun c:cc ( )
(command "ucs" "ob" pause)



Is that all you have? Those DEFUN statements need closing parentheses...


(defun c:vv ( )
(command “ucs” “w”)
)

(defun c:cc ( )
(command "ucs" "ob" pause)
)

pwilson.112560
2006-11-28, 11:04 PM
ah - figured out the original problem. the commands had been written with smart quotation marks - the kind that actually curve - and pasted in to the .lsp file. they've got to be dumb quotation marks, like this: " ".

thanks!

pete wilson

ccowgill
2006-11-30, 12:16 PM
These are the ones I use






(defun c:UH ()
(command "UCS" "WORLD")
)
(defun c:UI ()
(command "UCS" "Z")
)
(defun c:UO ()
(command "UCS" "OB")
)