Hey All,
Simple little problem, lisp works fine, but I get an annoying "error: no function definition: nil".
I know this line of code returns nil, but I don't know how to stop the error... Any ideas?
Code:
(command "_.shademode" "G")
Full lisp (to toggle wireframe/shaded modes):
Code:
(defun c:togglevs (/ cvs) (setq cvs
(assoc 281 (entget (tblobjname "VPORT" "*ACTIVE")))
)
(setq cvs (cdr cvs))
(cond
(
(OR
(= cvs 0)
(= cvs 1)
(= cvs 2)
)
(
(command "_.shademode" "G")
(prompt "Toggling to Shaded mode")
)
)
(
(OR
(= cvs 4)
(= cvs 6)
)
(
(command "_.shademode" "3D")
(prompt "Toggling to Wireframe mode")
)
)
)
(princ)
)