cmlucifer Posted September 26, 2012 Posted September 26, 2012 Need some attribute help, The company I work for uses this attached block for calling out sections. I would like to know if its possible to enter the variable once and both change at the same time or if there is completely new approach than the block I submitted? Thanks Carlo Section Call.dwg Quote
Tharwat Posted September 26, 2012 Posted September 26, 2012 Are you about to change the value of the indication of that dynamic block ? (defun c:TesT (/ st ss n e) ;; Tharwat 27. Sep. 2011 ;; (if (and (not (eq (setq st (getstring "\n Specify string :")) "")) (setq ss (ssget "_+.:S" '((0 . "INSERT") (66 . 1)))) ) (progn (setq n (entnext (ssname ss 0))) (while (not (eq (cdr (assoc 0 (setq e (entget n)))) "SEQEND")) (if (eq (cdr (assoc 0 e)) "ATTRIB") (entmod (subst (cons 1 st) (assoc 1 e) e)) ) (setq n (entnext n)) ) ) ) (princ) ) Quote
cmlucifer Posted September 29, 2012 Author Posted September 29, 2012 Sorry for late response I was out of town. The lisp is flawless and it serves my purpose. Thanks Carlo Quote
Tharwat Posted September 29, 2012 Posted September 29, 2012 Sorry for late response I was out of town. The lisp is flawless and it serves my purpose.Thanks Carlo You're welcome Carlo Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.