TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: AKeng on November 05, 2022, 08:53:52 AM
-
Hello all
I don't know if the question here is correct?
but I have a problem with a macro that I used to use in Autocad 2008 and now want to use it in Autocad 2018.
Something is wrong but I can't find it.
The point is to have the xline on my "HD-Hilsline" layer in the background.
I hope you see it.
^C^C_ssx;;LA;HD-Hilfsline;;_draworder;p;;back;
-
I found the solution myself after a lot of trying.
I made a lisp and it works ok :smitten: :smitten:
(defun c:x2b (/ olist)
(if (setq olist (ssget "X" '((8 . "HD-Hilfsline"))))
(command "_draworder" olist "" "_b")
)
(princ)
)