Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

Sorry for late response I was out of town. The lisp is flawless and it serves my purpose.

Thanks

Carlo

Posted
Sorry for late response I was out of town. The lisp is flawless and it serves my purpose.

Thanks

Carlo

 

You're welcome Carlo

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