ZWSOFT User Community > ZWSOFT Forums - Find. Share. Connect. > Essential Posts for ZWCAD/ZW3D > SolidEdit in LISP
SolidEdit in LISP
23-07-2012 05:56 . pm | View his/her posts only
I have tried to implement solidedit in a lisp.
I want the user to color faces.
The problem is that everytime I select te color and aply it, the dropdown box of solidedit apears and kicks me out of the lisp.
I want the lisp to continue after the faces have been selected and the color has been picked and aplied..
Does anybody know what the codeline should be?
I tried several options, but cant get it to work...
Code: (command "_solidedit" "_face" "_color")
SolidEdit in LISP
23-07-2012 05:59 . pm | View his/her posts only
Hi,
Test this code, if "pause" you change with variable that code would error.
Code:
(defun c:test (/ col)
(while
(setq col (getint "\nEnter new color for face object: "))
(command "_solidedit" "f" "l" pause "" col "" "")
) ; while
(princ)
) ; defun
Test this code, if "pause" you change with variable that code would error.
Code:
(defun c:test (/ col)
(while
(setq col (getint "\nEnter new color for face object: "))
(command "_solidedit" "f" "l" pause "" col "" "")
) ; while
(princ)
) ; defun




