Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Phantom Yellow Rectangles

19 REPLIES 19
SOLVED
Reply
Message 1 of 20
Anonymous
1779 Views, 19 Replies

Phantom Yellow Rectangles

I have these phantom yellow rectangles on my CAD drawings. I have had them in all files I've ever used and just learned to ignore them but I can't anymore. They only appear at certain zoom levels (scale.) They are not selectable and are seemingly random. Anyone else know what these are? And how to get rid of them?

 

Any help is appreciated,

Trent

19 REPLIES 19
Message 2 of 20
wispoxy
in reply to: Anonymous

Please share a DWG sample.
Message 3 of 20
Anonymous
in reply to: wispoxy

Unfortunately I can't share the DWG files because they're confidential. But I've had them at previous jobs also, in other words completely unrelated drawings and versions of AutoCAD to the one's I use now.

 

I've also had them print on PDFs as a series of close together vertical lines. However then never showed on the PDF in the Adobe PDF viewer, just on the paper when they printed. I don't know if it's related. However, a bunch of close together vertical lines zoomed out in AutoCAD would appear as a solid rectangle.

 

Trent

Message 4 of 20
wispoxy
in reply to: Anonymous

If you create a new cad file to share with us, will they be there?
Message 5 of 20
leothebuilder
in reply to: Anonymous

Empty text objects maybe? Just guessing here.

Message 6 of 20
Anonymous
in reply to: wispoxy

No they won't but I deleted all the content and they're still there. Attached.

 

What's strange is I did Ctrl+A and then delete and they went away but if I deleted everything in pieces they didn't go away and then Ctrl+A didn't do anything after that. My guess was they were somehow attached to something with text...

 

Trent

Message 7 of 20
Patchy
in reply to: Anonymous

Yes, they are empty text.

 

Capture.JPG

Message 8 of 20
Anonymous
in reply to: Patchy

Awesome! How do I delete them?
Message 9 of 20
Patchy
in reply to: Anonymous
Message 10 of 20
drjohn
in reply to: Anonymous

Try QTEXT ... turn it on and they should be bounding boxes and you should be able to delete them.

 

 

HTH

 

Regards,

DJ

 

Message 11 of 20
Kent1Cooper
in reply to: Patchy


@Patchy wrote:

Yes, they are empty text.


I have to convert to an earlier version here, so I hope that doesn't affect it, but....  For me, the yellow ones are in anonymous Blocks, and there are also some white ones that are top-level Text objects.

 

But in neither case are they empty.  They contain spaces [multiple in the yellow ones, single in some of the white ones and multiple in others].  That's why they appear when Zoomed out, but not when Zoomed in closer -- at a certainly Zoomed-out level relative to the Text size, Text turns into little approximation bars [what you're seeing], but when Zoomed in closer, they show their character content, which in the case of nothing but spaces means they disappear.  They also look empty in the result of a LIST command, but if you pick on one and check in the Properties box, you can "detect" the space(s) by double-clicking in the Content slot.

 

Because they're not really empty, the AUGI thread may be irrelevant [though I didn't follow it all the way through].

 

A routine could certainly be made to find all Text objects containing nothing but spaces, and get rid of them.  The ones in the Blocks are a different matter, but might be findable, especially if they are always in anonymous Blocks, or Blocks of the same name, or on the same Layer, or something.  But if that's all that's in those Blocks, presumably you want the Blocks themselves removed, rather than just the Text objects in them, which could probably also be done, though it would be a little more complicated.

Kent Cooper, AIA
Message 12 of 20
JDMather
in reply to: Anonymous


@Anonymous wrote:
 I have had them in all files I've ever used
 But I've had them at previous jobs also, in other words completely unrelated drawings and versions of AutoCAD to the one's I use now.

Now that you know the cause - eliminate the source.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


Message 13 of 20
wispoxy
in reply to: Patchy

@Patchy You're awesome.

Message 14 of 20
Anonymous
in reply to: Kent1Cooper

The way I did it and got it to work was from the AUGI thread. I did Ctrl+A and then deselected all the content using the mouse to draw a box from right to left while holding shift. It took a while to load because the tens of thousands of objects to deselect but the empty text fields were what was left selected. Then I just hit DELETE. Then I had to do the same inside any blocks that had them also by going into the block editor. The AutoLisp from the thread didn't work but theoretically would get rid of zero length lines if you had any.

Trent
Message 15 of 20
jggerth
in reply to: Anonymous

drjohn had the right solution to quckly identify blank text strings.... use the QTEXT command, and they will be visible/selectable.

Message 16 of 20
Anonymous
in reply to: jggerth

That had no effect for me. Even trying it on the CAD file I attached in an early post.

Trent
Message 17 of 20
dbroad
in reply to: jggerth

Unless you have a really old version of AutoCAD, the easiest way to get rid of empty text strings is to purge them.  Check the purge 0 length geometry and empty text objects.  It will purge any string that has only blanks.

Architect, Registered NC, VA, SC, & GA.
Message 18 of 20
Anonymous
in reply to: dbroad

That did work to get rid of some white lines (that are zero length or empty text fields) that appeared when zoomed out to extreme scale but it had no effect on the yellow rectangles.

 

After further research, it turns out the yellow rectangles are actually "Block reference"s. But the solution I stated earlier still is the only way to get rid of them. The can not be individually selected by conventional means. But Ctrl+A works to select them all at once.

 

Trent

Message 19 of 20
dbroad
in reply to: Anonymous

I just looked at your drawing.  The blocks, which contain only an empty text string are all anonymous.  You should look into what is creating those in the first place.  Since anonymous blocks cannot be edited, they are virtually useless, except as placeholders for dynamic blocks.  These are not dynamic blocks.

 

CTRL+A is not the best way to select something specific.  Qselect is better.  Choose block for object type. Choose Name from the properties list and then choose wildcard match.  In the blank, enter *U*.

 

That will select all anonymous blocks and skip dynamic blocks.

Architect, Registered NC, VA, SC, & GA.
Message 20 of 20
Anonymous
in reply to: dbroad

Well either way, after much testing these are the results (attached screenshots using the CAD file previously attached):

 

1. Ctrl+A: Selects all things and then all of the empty block references and text fields can be deleted at once (except for the ones inside blocks, of which the same thing needs to be done inside the block editor.)

 

2. Ctrl+A_after_Purge: The PURGE process (explained earlier) only gets rid of empty text fields.

 

3. QSELECT: Only selects some of the empty block references and not all of them, as you stated.

 

4. QTEXT set to "ON" didn't allow them to be selectable.

 

In the end, I don't have the time or energy in this situation to try and figure out why some empty block references are different than others or what the full extents of the commands PURGE, QSELECT, and QTEXT are but for me option 1 was what I needed to fix my probem.

 

However, thank you all very much for your help on solving this!

 

Trent

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report