TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: AKeng on November 05, 2022, 08:53:52 AM

Title: Draworder with layer and xline
Post 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.

Code: [Select]
^C^C_ssx;;LA;HD-Hilfsline;;_draworder;p;;back;
Title: Re: Draworder with layer and xline
Post by: AKeng on November 06, 2022, 09:15:48 AM
I found the solution myself after a lot of trying.
I made a lisp and it works ok  :smitten: :smitten:

Code: [Select]
(defun c:x2b (/ olist)
(if (setq olist (ssget "X" '((8 . "HD-Hilfsline"))))
(command "_draworder" olist "" "_b")
)
(princ)
)