Layer display order

Layer display order

Anonymous
해당 사항 없음
1,139 조회수
2 답변
1/3 메시지

Layer display order

Anonymous
해당 사항 없음

I have 6 layers, I want to control their view order on my screen. In other words. I want Layer 2 to be displayed over layer 1 with the details of layer 1 covered by the details of layer 2. Seems simple but not sure how to set this up.

0 Likes
수락된 솔루션(1)
1,140 조회수
2 답변
답변 (2)
2/3 메시지

3wood
Advisor
Advisor
수락된 솔루션

Merry Christmas!

You can try the codes below. Save it as a *.LSP file and load it with command APPLOAD. Then type ORDERBYLAYER in the command line.

You can change the layer names to suit your usage.

;;; OrderByLayer.lsp
;;; By 3wood 2015.12.24
;;; Change the layer name and add more layers to suit.
;;; The first layer will be sent to front and the last layer sent to back.
(defun C:OrderByLayer ()
  (command "._DRAWORDER" (ssget "_A" '((8 . "Layer1"))) "" "_B")
  (command "._DRAWORDER" (ssget "_A" '((8 . "Layer2"))) "" "_B")
  (command "._DRAWORDER" (ssget "_A" '((8 . "Layer3"))) "" "_B")
  (command "._DRAWORDER" (ssget "_A" '((8 . "Layer4"))) "" "_B")
  (command "._DRAWORDER" (ssget "_A" '((8 . "Layer5"))) "" "_B")
  (command "._DRAWORDER" (ssget "_A" '((8 . "Layer6"))) "" "_B")
  )
3/3 메시지

Anonymous
해당 사항 없음

There is a app for this on our Exchange Store called LORDER

 

https://apps.autodesk.com/ACD/en/Detail/Index?id=1327493704848524878&appLang=en&os=Win32_64

0 Likes