Display full version of the post: shortcut draworder
roel-nahuis
20.06.2019, 08:12
hello,is there an shortcut for draworder send to back and bring to front?
rebellio
20.06.2019, 10:14
Hi,Shortcut is "DR"Adjustable via "Aliasedit" if preferred.Regards
rebellio2019-06-20 12:44:59
roel-nahuis
20.06.2019, 10:24
Thanks, it works!!!
Kent Cooper
20.06.2019, 14:44
[QUOTE=roel-nahuis]... is there an shortcut for draworder send to back and bring to front?[/QUOTE]
I use two little shortcut commands for not just the DRAWORDER command [which still requires you to specify Back or Front], but for the command with the Back or Front option included in the command operation, without your needing to answer for it [EDIT: just replaced with upgraded version that allows pre-selection]: ;; DraworderBackFront.lsp [command names: DB & DF];; To put selected objects at the Back or Front of the Draworder;; Kent Cooper, last edited 20 June 2019 [work with pre-selection](defun DBF (which / cmde ss) (setq cmde (getvar 'cmdecho)) (if (ssget "_I") (setq ss (ssget "_I")); then (progn ; else (prompt (strcat "\nTo move to " which " in draw order,")) (setq ss (ssget ":L")) ); progn ); if (if ss (progn ; then (setvar 'cmdecho 0) (sssetfirst nil nil); clear if via pre-selection (command "_.draworder" ss "" (strcat "_" which) "_.regen") (setvar 'cmdecho cmde) ); progn (prompt "\nNothing selected."); else ); if (princ))(defun C:DB () (DBF "Back"))(defun C:DF () (DBF "Front"))
Kent Cooper2019-06-20 15:04:06
Vladimir Michl
21.06.2019, 07:28
There is also a menu macro predefined in CUI - you can assign any keyboard shortcut to it to invoke it faster than through the ribbon.
rebellio
21.06.2019, 15:54
"Borrowed" this one from you Kent, thanks for sharing