Set by layer

Hello
Can somebody look where is the mistake in code below to
automatically run command: "setbylayer" ( set by layer is another lisp program that can be download from here http://www.b-k-g.nl/bkg_setbylayer.html).
This is my try but it doesn't work :/ . There is message " There need to be point. Try again"

(defun c:QQ ()
(command "_selgrips" "_all" "BKG_SETBYLAYER" "OK" )
(princ))

Comments

  • @Brian12345:
    BKG_SetByLayer is dialog driven. It cannot be used in this manner.
    This does work:
    (command "bkg_setbylayer" "_all" "")
    But you will still have to manually click the OK button.

    Maybe I'll one day create a command line version.

  • Thank you it is work as you say by manually clicking "ok" it's not perfect but it's ok to me

This discussion has been closed.