Results 1 to 4 of 4

Thread: Attributes upper and lower case lisp modification

  1. #1
    Login to Give a bone
    0

    Default Attributes upper and lower case lisp modification

    Dear Helpers,
    I got a lisp code that will update all attributes of single selected block to uppercase. But the lisp code I need is, it should update only single attribute to upper or lowercase for selected block. The code I have is below. It should work for multiple blocks.
    (defun c:AUC ( / ent enx )
    (if (and (setq ent (car (entsel)))
    (= "INSERT" (cdr (assoc 0 (setq enx (entget ent)))))
    (= 1 (cdr (assoc 66 enx)))
    (setq ent (entnext ent)
    enx (entget ent)
    )
    )
    (while (= "ATTRIB" (cdr (assoc 0 enx)))
    (entmod (subst (cons 1 (strcase (cdr (assoc 1 enx)))) (assoc 1 enx) enx))
    (setq ent (entnext ent)
    enx (entget ent)
    )
    )
    (princ "\nNo object selected or selected object is not a block.")
    )
    (princ)
    )

    Thanks,
    T.Brahmanandam

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    561
    Login to Give a bone
    0

    Default Re: Attributes upper and lower case lisp modification

    Please check Cadtutor for reponses.

  3. #3
    I could stop if I wanted to
    Join Date
    2006-04
    Posts
    466
    Login to Give a bone
    0

    Default Re: Attributes upper and lower case lisp modification

    https://apps.autodesk.com/ACD/en/Det...en&os=Win32_64

    Ultimate Attribute Edit

    (hope this is not self promotion, fits the question)

  4. #4
    Login to Give a bone
    0

    Default Re: Attributes upper and lower case lisp modification

    Thak you so much. But my organization don't allow to install addons

Similar Threads

  1. 2013: Sheet set manager text a mix of upper case & lower case
    By nextvkin in forum AutoCAD Sheet Set Manager
    Replies: 6
    Last Post: 2018-03-27, 09:26 PM
  2. Replies: 3
    Last Post: 2007-01-09, 12:42 PM
  3. Upper/Lower case text
    By djn in forum Revit Architecture - General
    Replies: 8
    Last Post: 2007-01-05, 10:40 PM
  4. Changing from UPPER case to lower case
    By IamSnave in forum AutoCAD General
    Replies: 9
    Last Post: 2005-02-09, 10:30 PM
  5. Layer names from lower to upper case
    By dqueen in forum AutoCAD Customization
    Replies: 2
    Last Post: 2004-06-23, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •