Results 1 to 10 of 10

Thread: ATTOUT modification to not break attributes that are links

  1. #1
    100 Club Lemons's Avatar
    Join Date
    2001-06
    Location
    Beautiful Charleston, SC
    Posts
    182
    Login to Give a bone
    0

    Cool ATTOUT modification to not break attributes that are links

    Hi, y'all! Greetings from beautiful Charleston, SC. It's been a while since I've been on AUGI πŸ––

    I'm working in AutoCAD 2018

    The express tools attout.lsp turns attributes that are links into text.

    I'd like to edit/have the file edited by one of you guru Lispers so that
    1. It excludes attributes that are links and
    2. It saves the file if I want it to do so (I can probably do this one!).

    I'll pull the text of the lsp if ya want me to do so, or someone can tell me what to put and where.

    Can you help me, please?

    Thanks so much!

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,659
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    See if Lee Mac's Upgraded Burst version works for you http://www.lee-mac.com/upgradedburst.html
    If not he could probably be persuaded to update it.

  3. #3
    100 Club Lemons's Avatar
    Join Date
    2001-06
    Location
    Beautiful Charleston, SC
    Posts
    182
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    Thanks so much for the suggestion, Tom!

    I may have Burst on a disk but our work CDs have been disabled for security purposes. Yeah, I could use my laptop and email it to myself, but my daughter has my laptop right now 🀣

    I'll go to his site and ask him about it if it doesn't do what I want.

    What I'm working with is cable labels. There can be 80 on a sheet and they each have 6 or 7 attributes. It's sooo much easier using ATTOUT, copying and pasting the info from the dwg to the txt file, saving, then using ATTIN rather than updating each attribute in each block one at a time. ATTOUT/IN saves me probably 90% of the time.

    How are you, Tom? I haven't been on AUGI for a pretty long time.

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,400
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    I believe that JTB BatchAttEdit would do what you want. Check out the trial version.
    C:> ED WORKING.... β–’

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

    Default Re: ATTOUT modification to not break attributes that are links

    You could say pick a block a dcl will pop up with current attribute values change then pick other block it will populate based on those values. The idea behind my Multi getvals.lsp is exactly that pass a list of values in this case attributes and populate a dcl. There are a couple of rules like if block1 has a different number of attributes compared block 2 may not work unless coded to do so. For ease of coding attributes would be retrieved in attribute order not by how they look in dwg. Tested on block with 20 attributes.

    Try this pick a block attributes should display, it is set to 20 characters if more in your attributes change the 20 & 19 to bigger numbers.

    I have not done more other than to show how it could be done, need some of your blocks to test properly if you want to go down this path.

    You will need to save Multi getvals.lsp into a support path location its a library routine can be used in any code examples are in code. Else paste at start of code below.

    Code:
    ; Multi getvals Library routine for multiple value dcl
    ; By alanH 
    
    (if (not AH:getvalsm)(load "Multi Getvals.lsp"))
    (vl-load-com)
    
    (defun c:2atts ( / x y obj att attlst lst)
    (setq obj (vlax-ename->vla-object (car  (entsel "Pick obj"))))
    (if (= :vlax-true (vlax-get-property obj 'HasAttributes))
      (foreach att (vlax-invoke  obj 'getattributes)
       (setq attlst (cons (vla-get-textstring att) attlst))
      )
    (alert "block has no attributes nothing will happen")
    )
    
    
    (if (/= attlst nil)
     (progn
      (setq lst (list "Enter Values") y 0)
      (repeat (setq x (length attlst))
        (setq lst (cons (strcat "Attrib" (rtos (setq y (+ y 1)) 2 0)) lst))
        (setq lst (cons 20 lst))
        (setq lst (cons 19 lst))
        (setq lst (cons  (nth (setq x (- x 1)) attlst) lst))
      )
      (setq lst (reverse lst))
    
      (setq ans (AH:getvalsm lst))
     )
    )
    
    (princ)
    )
    Attached Files Attached Files

  6. #6
    100 Club Lemons's Avatar
    Join Date
    2001-06
    Location
    Beautiful Charleston, SC
    Posts
    182
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    Thanks, Ed! I will check it out! I hope the free version is good enough, but I can probably get my company to pay for the $ one.

    I hope all is well in your world πŸ™‚

  7. #7
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,400
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    Quote Originally Posted by Lemons View Post
    Thanks, Ed! I will check it out! I hope the free version is good enough, but I can probably get my company to pay for the $ one.

    I hope all is well in your world ν ½νΉ‚
    It's not a free version. Its a trial, probably time limited. You should be able to see if it does what you need.

    My immediate family is ok. No covid. But my sister-in-law's mother passed away from covid 2 weeks ago. My cousin had it but recovered.
    C:> ED WORKING.... β–’

  8. #8
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,400
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    Quote Originally Posted by Lemons View Post
    Thanks, Ed! I will check it out! I hope the free version is good enough, but I can probably get my company to pay for the $ one.

    I hope all is well in your world πŸ™‚
    It's not a free version. Its a trial, probably time limited. You should be able to see if it does what you need.

    My immediate family is ok. No covid. But my sister-in-law's mother passed away from covid 2 weeks ago. My cousin had it but recovered.
    C:> ED WORKING.... β–’

  9. #9
    100 Club Lemons's Avatar
    Join Date
    2001-06
    Location
    Beautiful Charleston, SC
    Posts
    182
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    Oops, I meant trial...

    Great on your immediate family and I'm so sorry about your sister-in law's mother. great that your cousin recovered.

    We lost my ex-husband's sister at the beginning of last March from the plague (covid). She had been visiting her baby brother and his family (16 children, 12 of whom were international adoptees) in Whidbey Island (Seattle) in February. None of them knew what was up, and she flew back to SC from SEATAC. My daughter and her son tried to get her to wear a mask, but she thought she'd be fine , that God would take care of her. he was dead a little over a week later πŸ˜₯

  10. #10
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,400
    Login to Give a bone
    0

    Default Re: ATTOUT modification to not break attributes that are links

    That's too bad. This thing is nothing to mess around with. Still I see many people not wearing masks.
    C:> ED WORKING.... β–’

Similar Threads

  1. ATTOUT.lsp MODIFICATION
    By javier.jvc in forum AutoLISP
    Replies: 0
    Last Post: 2010-08-22, 02:37 PM
  2. ATTOUT?
    By StormyC in forum AutoCAD LT - General
    Replies: 2
    Last Post: 2010-06-14, 09:14 PM
  3. Attout Express Tool - Command Line
    By JohnLV in forum AutoCAD General
    Replies: 4
    Last Post: 2006-03-14, 06:10 PM

Tags for this Thread

Posting Permissions

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