nik600
Guest
Hello everyone
I am trying to write a lisp function that allows me to show / hide a block based on its name.
This is the code I wrote:
ma quando lo eseguo ottengo questo errore:
from what I understood redraw takes an ename type parameter, which is probably not what is returned by ssget
so, how can I convert the result of ssget to an ename, or how can I get the ename of an object having its name?
Thank you.
I am trying to write a lisp function that allows me to show / hide a block based on its name.
This is the code I wrote:
Code:
(defun c:test_show ()
(setq selection)
(redraw selection 1)
(princ)
(defun c:test_hide ()
(setq selection)
(redraw selection 2)
(princ)
Code:
command: test_show
; error: type of wrong subject: lentityp <selection 3="" set:=""></selection>
so, how can I convert the result of ssget to an ename, or how can I get the ename of an object having its name?
Thank you.