i think i got it
- (defun c:ROTATEMOVEATTRIBUTE1( / ss obj) (vl-load-com) (setq tag '("TAG1" "TAG2" "TAG3")) (and (setq ss (ssget '((0 . "INSERT") (66 . 1)))) (vlax-for obj (setq ss (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object)))) (if (= (vla-get-HasAttributes obj) :vlax-true) (foreach attVar (vlax-invoke obj 'GetAttributes) (if (not (= (vla-get-TagString attVar) tag)) (vla-put-Rotation attVar 0))))) (vla-delete ss)) (princ))
can sombody help me now with the move command.
I need to have the option to move the attributes after the rotation. |