ReachAndre
2009-08-13, 07:18 PM
Hello all,
I am trying to obtain the ductw,ducth and visibilty properties of the attached block. I am then trying to set them to values so that I may use them later in lisp.
I dont know how to get the properties, so the code below, I just left some "Fill in the Blank" type spaces
(defun c:dpropget (/ selblock ductw ducth vs)
(setq selblock (entsel))
(setq vs ());obtain visibility state from selblock)
(setq ductw ());obtain DuctW value from selblock)
(setq ducth ());obtain DuctH value from selblock)
(princ (strcat "\n" (rtos ductw 2 0) " x " (rtos ducth 2 0) " " vs " duct"))
(princ))
and of course, I am not using this lisp just to display information in the command line, I am just doing this for verification of information and display
Thank you all for your help,
Andre
I am trying to obtain the ductw,ducth and visibilty properties of the attached block. I am then trying to set them to values so that I may use them later in lisp.
I dont know how to get the properties, so the code below, I just left some "Fill in the Blank" type spaces
(defun c:dpropget (/ selblock ductw ducth vs)
(setq selblock (entsel))
(setq vs ());obtain visibility state from selblock)
(setq ductw ());obtain DuctW value from selblock)
(setq ducth ());obtain DuctH value from selblock)
(princ (strcat "\n" (rtos ductw 2 0) " x " (rtos ducth 2 0) " " vs " duct"))
(princ))
and of course, I am not using this lisp just to display information in the command line, I am just doing this for verification of information and display
Thank you all for your help,
Andre