Angelo2449 Guest Mar 20, 2023 #1 Hello everyone, is it possible to define an element obtained by the > mirror < ? Thank you.
rpor66 Guest Mar 21, 2023 #2 Code: (defun fnspecchio (/ sel nuovasel pt1 pt2 c) (princ "\nspecchio: " (setq sel (ssget)) (setq pt1 (getpoint "\nprimo point per mirror: ") (setq pt2 (getpoint pt1 "\nsecond point per mirror: ") (setq c 0) (Sectq newsel (ssadd)) (repeat (sslength sel) (setq n (ssname sel c)) (command "_mirror" n" pt1 pt2 "_n") (setq newsel (ssadd (entlast) newsel)) (setq c (1+ c)) ) new ) to get the selection group of objects you have to mirror them individually and add them to the new group in practice: (Sectq miasel)
Code: (defun fnspecchio (/ sel nuovasel pt1 pt2 c) (princ "\nspecchio: " (setq sel (ssget)) (setq pt1 (getpoint "\nprimo point per mirror: ") (setq pt2 (getpoint pt1 "\nsecond point per mirror: ") (setq c 0) (Sectq newsel (ssadd)) (repeat (sslength sel) (setq n (ssname sel c)) (command "_mirror" n" pt1 pt2 "_n") (setq newsel (ssadd (entlast) newsel)) (setq c (1+ c)) ) new ) to get the selection group of objects you have to mirror them individually and add them to the new group in practice: (Sectq miasel)