Results 1 to 10 of 10

Thread: Invisible Objects

  1. #1
    All AUGI, all the time arshiel88's Avatar
    Join Date
    2005-02
    Location
    Off the Grid
    Posts
    560
    Login to Give a bone
    0

    Cool Invisible Objects

    Do you want to hide objects that cannot be shown by thawing or making all layers on? Or you may want to put your signature or any other objects and hide it for future reference.

    Making Invisible Objects is only accessible to VBA. (I dont know with AutoLisp, VisualLisp and DIESEL). This option is not available in the normal properties window that makes it cool to make invisible objects.

    Heres the Code:

    Code:
     Sub Stealth()
    
    Dim x As AcadObject
    
    For Each x In ThisDrawing.ActiveSelectionSet
        x.Visible = False
    Next
    End Sub
    and the antidote...

    Code:
    Sub Destealth()
    
    Dim x As AcadObject
    
    For Each x In ThisDrawing.ModelSpace
        x.Visible = True
    Next
    End Sub
    Just put this in any module in VBA, and the commands will be available via Macros window ( Alt+F8 ). To make invisible, select objects first, then issue Stealth command; and Destealth to show all invisible objects.

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,186
    Login to Give a bone
    0

    Default Re: Invisible Objects

    This thread, "INVISIBLE object selection" discusses an incomplete AutoLISP solution for restoring the visibility. It should not need much to reverse the routine.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    All AUGI, all the time arshiel88's Avatar
    Join Date
    2005-02
    Location
    Off the Grid
    Posts
    560
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Wow. it works...
    And maybe isolating objects (not layers) in ADT is related to this. I dont have ADT but I've tried it once from my friend's PC. Does the ADT have the invisible property on objects?

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,186
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by arshiel88
    Wow. it works...
    And maybe isolating objects (not layers) in ADT is related to this. I dont have ADT but I've tried it once from my friend's PC. Does the ADT have the invisible property on objects?
    To my knowledge, it's an AutoCAD thing. Since ADT is a vertical application for AutoCAD, then it would have similar abilities.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    All AUGI, all the time arshiel88's Avatar
    Join Date
    2005-02
    Location
    Off the Grid
    Posts
    560
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by Opie
    To my knowledge, it's an AutoCAD thing. Since ADT is a vertical application for AutoCAD, then it would have similar abilities.
    Sorry my mistake. I mean, is the object's invisible property normally accessible via properties pallete or simple commands without involved programming?

  6. #6
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,186
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by arshiel88
    Sorry my mistake. I mean, is the object's invisible property normally accessible via properties pallete or simple commands without involved programming?
    The visibility is not listed through the normal properties palette. You would have to manipulate that property through programming.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  7. #7
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,831
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by Opie
    discusses an incomplete AutoLISP solution for restoring the visibility. It should not need much to reverse the routine.
    Which message? I thought the last message contained the complete code to restore...
    R.K. McSwain | CAD Panacea |

  8. #8
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,186
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by rkmcswain
    Which message? I thought the last message contained the complete code to restore...
    In the current form of the code, what is the command used to execute the listed code? What would someone need to type, place in a menu or a toolbar or a tool palette to repeatedly execute the routine?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  9. #9
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,831
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by Opie
    In the current form of the code, what is the command used to execute the listed code? What would someone need to type, place in a menu or a toolbar or a tool palette to repeatedly execute the routine?
    Whatever you want to use.
    Wrap it in a defun and name it what you wish, but the "AutoLISP solution for restoring the visibility" part is complete.

    R.K. McSwain | CAD Panacea |

  10. #10
    All AUGI, all the time arshiel88's Avatar
    Join Date
    2005-02
    Location
    Off the Grid
    Posts
    560
    Login to Give a bone
    0

    Default Re: Invisible Objects

    Quote Originally Posted by Opie
    discusses an incomplete AutoLISP solution for restoring the visibility. It should not need much to reverse the routine.
    Quote Originally Posted by rkmcswain
    Which message? I thought the last message contained the complete code to restore...
    Actually, we can issue AutoLisp commands via Command line, right? In fact I only pasted that code of yours in Command prompt, and it works. My first thought was that Opie is referring to the reverse of the code (i.e. making invisible-besides it is the topic of this thread anyway) maybe thats why he said its incomplete.

Similar Threads

  1. Objects co-planar to ceiling invisible when printing
    By PinkPantser in forum Revit Architecture - General
    Replies: 3
    Last Post: 2009-05-22, 12:15 AM
  2. Annotative objects invisible when x-refed (model & paper space)
    By mockdeep in forum AutoCAD Annotation
    Replies: 0
    Last Post: 2008-11-10, 03:13 PM
  3. Protect Invisible Objects
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2008-10-12, 04:56 PM
  4. Show Just Invisible Objects
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-11-26, 05:52 PM
  5. invisible objects
    By ccorreia in forum ACA General
    Replies: 3
    Last Post: 2006-02-09, 12:59 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
  •