Message 1 of 5
Send Wipeout to Back of Draworder within Block Definition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I have been trying to figure this out with several approaches now and I need some help.
I would like to send all Wipeouts, or really any specified entity type, within a block to the back of the draw order.
Is there a way to do this using Lee Mac's Apply To Block Objects routine? I tried this in conjunction with his draw order routines but the MovetoBottom command kept failing. I'm pretty rough with VisualLisp which is part of the issue when trying to troubleshoot his great routines.
Or what about this approach? (I dont really understand it, again Viusal Lisp)
Below is what I tried.
I do understand Vanilla Lisp. Visual Lisp I barely know the basics, but eager to learn.
Please help me improve my capabilities. Thank you.
(defun c:test ( / s )
(princ "\nSelect Block: ")
(if (setq s (ssget "_+.:E:S" '((0 . "INSERT"))))
(LM:ApplytoBlockObjects
(vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
(vla-get-effectivename (vlax-ename->vla-object (ssname s 0)))
'(lambda ( obj ) (BG:WipeoutToBottom))
)
)
(princ)
)
(vl-load-com) (princ)
(defun BG:WipeoutToBottom( / )
(LM:movetobottom (ssget "X" '((0 . "WIPEOUT"))))
;(princ)
);end of defun
;===============Below here are Lee's draw order functions==============