(defun c:hdbo
(/ layerlist layerc
) ;; Author: Based off of BlackBox''s post on CADTutor
;; http://www.cadtutor.net/forum/showthread.php?87890-change-draw-order-if-layer-exists&s=e6ae9b5b97e60272c68c3a5b0c177b6b
;; Dated 07/28/2015 - Initial Release
;;
;; Dependencies
;; -_readfile
;; -C:/order.txt
;;------------------------------------------------------------;;
(if (setq layerlist
(_readfile
"C:/order.txt")) (ai_draworder "_b")
)
)
) ; end for each
(alert "Layer List not Found") ) ; end if file location
) ; end function