+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Super Member chelsea1307's Avatar
    Computer Details
    chelsea1307's Computer Details
    Operating System:
    windows xp
    Using
    AutoCAD 2011
    Join Date
    Sep 2008
    Location
    Sacramento, Ca USA
    Posts
    1,109

    Default make invisible attribute visible

    Registered forum members do not see this ad.

    any way to view invisible block attribute?
    I created a block and the attributes really don't need to be seen in autocad just there for dataextraction and keeping it all in one location i want to go back through and make sure i have information filled in in all the right invisible attributes without having to open each block and check the attributes, but i don't want them permanently visible (i know i can freeze them or put them on a non plot layer but it clutters up the space when there is 20+ attributes to a block)
    "The problem is stupidity. I am not saying there should be capital punishment for stupidity, but, why don't we just take the safety labels off of everything and let the problem solve itself? "

  2. #2
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,058

    Default

    Try View > Display > Attribute Display then choose On. Does that work?
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  3. #3
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,000

    Default

    Give this a try:
    Code:
    ;;; Attribute Visibility Toggle
    ;;; Required Subroutines: AT:Entsel AT:GetAttributes
    ;;; Alan J. Thompson, 11.17.09
    (defun c:AVT (/ #Obj)
      (and
        (setq #OBj (AT:Entsel nil
                              "\nAttribute Visibility Toggle\nSelect Attributed Block: "
                              '("LV" (0 . "INSERT") (66 . 1))
                              nil
                   ) ;_ AT:Entsel
        ) ;_ setq
        (foreach x (AT:GetAttributes #Obj)
          (vla-put-visible
            x
            (if (eq (vla-get-visible x) :vlax-true)
              :vlax-false
              :vlax-true
            ) ;_ if
          ) ;_ vla-put-visible
        ) ;_ foreach
      ) ;_ and
      (princ)
    ) ;_ defun
    You'll need a couple subroutines from my subroutine thread:
    http://www.cadtutor.net/forum/showpo...59&postcount=5
    http://www.cadtutor.net/forum/showpo...9&postcount=26
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  4. #4
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,965

    Default

    Or at the command line type ATTDISP, or change the system variable ATTMODE

  5. #5
    Full Member jalucerol's Avatar
    Using
    AutoCAD 2010
    Join Date
    Oct 2009
    Location
    Mendoza, Argentina
    Posts
    33

  6. #6
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,000

    Default

    Quote Originally Posted by eldon View Post
    Or at the command line type ATTDISP, or change the system variable ATTMODE
    HaHa, oh well. LoL

    Code:
    (defun c:AM () (setvar 'attmode (abs (1- (getvar 'attmode)))) (princ))
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  7. #7
    Senior Member
    Computer Details
    Glen Smith's Computer Details
    Operating System:
    Win XP
    Computer:
    Dell Studio XPS 1645
    CPU:
    Intel i7 Q720 @ 1.6Ghz
    RAM:
    8 Gig
    Using
    Electrical 2010
    Join Date
    May 2008
    Location
    Cary, NC
    Posts
    418

    Default

    Or ATTOUT them to a CSV and view them in Notepad/Excel.

    Glen
    “Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something." Lazarus Long in Time Enough For Love

  8. #8
    Senior Member troggarf's Avatar
    Computer Details
    troggarf's Computer Details
    Operating System:
    Windows 7
    Computer:
    Toshiba Satellite L675
    Using
    AutoCAD 2012
    Join Date
    Oct 2010
    Location
    Littleton, Co
    Posts
    129

    Default

    Hey Alan,

    Can you please update the subroutine locations that are linked?

    The links aint workin' (at least when I click on them)...

    Thanks
    ~Greg
    ~Greg B
    Have fun!! www

  9. #9
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,000

    Default

    Quote Originally Posted by troggarf View Post
    Hey Alan,

    Can you please update the subroutine locations that are linked?

    The links aint workin' (at least when I click on them)...

    Thanks
    ~Greg
    I don't think it was ever what he had wanted (I missed the mark), but here's a simple rewrite...

    Code:
    (defun c:AVT (/ ss i)
      (if (setq ss (ssget "_:L" '((0 . "INSERT") (66 . 1))))
        (repeat (setq i (sslength ss))
          (foreach a (vlax-invoke (vlax-ename->vla-object (ssname ss (setq i (1- i)))) 'GetAttributes)
            (vlax-put a 'Visible (~ (vlax-get a 'Visible)))
          )
        )
      )
      (princ)
    )
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  10. #10
    Senior Member troggarf's Avatar
    Computer Details
    troggarf's Computer Details
    Operating System:
    Windows 7
    Computer:
    Toshiba Satellite L675
    Using
    AutoCAD 2012
    Join Date
    Oct 2010
    Location
    Littleton, Co
    Posts
    129

    Default

    Registered forum members do not see this ad.

    Works great on my end.
    Thanks dude

    ~Greg
    ~Greg B
    Have fun!! www

Similar Threads

  1. assoc code (60 . 0) make objects invisible
    By LauKwokFai in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 11
    Last Post: 23rd Apr 2013, 06:18 pm
  2. lisp to toggle a specific attribute visible/invisible
    By Astro in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 24th Sep 2009, 02:52 pm
  3. Way to make text visible inside paperspace viewport?
    By dreamer in forum AutoCAD 3D Modelling & Rendering
    Replies: 1
    Last Post: 19th Sep 2006, 08:30 pm
  4. Replies: 10
    Last Post: 30th Dec 2005, 03:54 pm
  5. Little help needed with visible/invisible lines
    By jay in forum AutoCAD Beginners' Area
    Replies: 4
    Last Post: 19th Dec 2005, 10:42 pm

Bookmarks

Posting Permissions

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