Yes, this is possible:
Code:; Match Block Rotation routine (08-VIII-2012) (defun c:MBR( / ssetBlockSource ssetBlockTarget theBlock assocList theRotation ) (prompt "\nSelect source block to copy rotation from...") (if (setq ssetBlockSource (ssget "_:S:E" '((0 . "INSERT")))) (progn (setq theBlock (ssname ssetBlockSource 0) assocList (entget theBlock) theRotation (assoc 50 assocList)) (prompt "\nSelect target block to copy rotation to...") (while (setq ssetBlockTarget (ssget "_:S:E" '((0 . "INSERT")))) (setq theBlock (ssname ssetBlockTarget 0) assocList (entget theBlock)) (entmod (subst theRotation (assoc 50 assocList) assocList)) ) ) ) (princ) )





Reply With Quote

Bookmarks