Objects exist on drawing but are invisible

Objects exist on drawing but are invisible

Anonymous
Not applicable
5,670 Views
7 Replies
Message 1 of 8

Objects exist on drawing but are invisible

Anonymous
Not applicable

Hi 

 

I have received a drawing from a client that uses our software that has somehow made the elements on a layer invisible despite the layer being unfrozen, etc. I have confirmed that the elements still exist on the floorplan by using the QSELECT command after Block Reference and then the "FPMerchandising" layer - there are around 260. Our software also recognises that the elements are present - we just cant see them. 

 

I have attached drawing here to see what feedback i get, but i'm stumped. I have even tried selecting the End Isolation command, but no success. 

 

Can you guys let me know what you think? 

 

Thanks

0 Likes
Accepted solutions (1)
5,671 Views
7 Replies
Replies (7)
Message 2 of 8

ActivistInvestor
Mentor
Mentor
Accepted solution

 

Command: (setq ss (ssget "x" '((60 . 1))))
<Selection set: 294>

Command: (sslength ss)
756

Objects can be made invisible explicitly via code.

 

Your drawing contains 756 objects in model and/or paper space that are invisible. That doesn't include invisible objects nested in blocks (which aren't detected by the above code).

 

This will make all entities in model and paper space visible:

 

 

(defun C:MAKEVISIBLE ( / ss)
   (cond
      (  (not (setq ss (ssget "x" '((60 . 1)))))
         (princ "\nNo invisible objects found."))
      (t (setq i -1)
         (repeat (sslength ss)
            (entmod (subst '(60 . 0) '(60 . 1) (entget (ssname ss (setq i (1+ i))))))
         )
         (princ (strcat "\n" (itoa (sslength ss)) " objects unhidden."))
      )
   )
   (princ)
)

  

Message 3 of 8

Anonymous
Not applicable

That worked!!!! 

 

Thanks very much.

 

One thing i dont know though is how they did this so i can cater for it in the future? What command would get the drawing into this state? 

 

Thanks again

0 Likes
Message 4 of 8

roland.r71
Collaborator
Collaborator

Isolate.

 

For Example: Right click any object, choose Isolate, then "Hide object".

-or- Click the [Isolate objects] button in lower-right corner.

 

The later is also the place to UNisolate objects.

 

When nothing is hidden, the button is all white (with a square, circle & triangle) & on mouse over it says: Isolate objects

Whenever an object is hidden, the button image changes (colors added), and on mouse over it says: Unisolate Objects. In that case, click it and choose: End object isolation, to unhide all objects.

 

Isolate = Hide all but selected.

Hide = Hide selected.

0 Likes
Message 5 of 8

Anonymous
Not applicable

Please explain how this was done?Or where to use this code rather?

0 Likes
Message 6 of 8

roland.r71
Collaborator
Collaborator

@Anonymous wrote:

Please explain how this was done?Or where to use this code rather?


The DXF group code 60 stores whether an entity is visible or not. (60 . 1) = invisible (60 . 0) = visible.

 

His code selects all entities which are invisible (60 . 1)

and changes the entity data to become visible (60 . 0)

 

As to "where" to use the code ... open a drawing containing (posible) invisible objects, load the lisp file with the code & execute the function.

 

However, this function is completely obsolete, as it can be done by pressing 1 icon already present in ACAD, as i explained before (see post #4).

 

At the lower right corner there is an hide/isolate button that will do exactly that and more.

isolate.png

0 Likes
Message 7 of 8

scot-65
Advisor
Advisor
Perhaps look into disabling transparency?
Look at AutoCAD documentation for the variable
TRANSPARENCYDISPLAY.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 8 of 8

declan_g
Enthusiast
Enthusiast

@ActivistInvestor Thanks so much for this code, helped me out with a Cad file that had hidden objects even though the Isolate Object Icon bottom right was normal.BeforeBeforeAfterAfter

0 Likes