Jump to content

cmlucifer

Recommended Posts

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

Link to comment
Share on other sites

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)
)

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...