Author Topic: Draworder with layer and xline  (Read 1039 times)

0 Members and 1 Guest are viewing this topic.

AKeng

  • Mosquito
  • Posts: 4
Draworder with layer and xline
« 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;
« Last Edit: November 07, 2022, 01:22:40 PM by AKeng »

AKeng

  • Mosquito
  • Posts: 4
Re: Draworder with layer and xline
« Reply #1 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)
)