Layer display order

Layer display order

Anonymous
Not applicable
1,135 Views
2 Replies
Message 1 of 3

Layer display order

Anonymous
Not applicable

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
Accepted solutions (1)
1,136 Views
2 Replies
Replies (2)
Message 2 of 3

3wood
Advisor
Advisor
Accepted solution

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")
  )
Message 3 of 3

Anonymous
Not applicable

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