Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

HELP! Unwanted text & linetypes (without any known association) KEEP showing up

SRodgers723
Explorer

HELP! Unwanted text & linetypes (without any known association) KEEP showing up

SRodgers723
Explorer
Explorer

Somewhere, somehow, we have got these text styles AND linetypes in a drawing that is spreading like the PLAGUE.

A lot of them look like they are from an XREF, BUT there are NO xrefs.  they are orphans from SOMEWHERE.

But my problem is:  HOW do they keep showing up when they SHOULD NOT be there??

For example, attached you will find a WBlock of a SINGLE LINE object from a screwed up drawing, can Anyone explain WHY all those UNUSED linetypes and text styles came with it??

I can use the more advanced Purge of Autocad 2018 to get rid of the stuff, but our production machines are still on Autocad 2012.

I have been using Autocad for DECADES and this has me stumped as it is infinitely FRUSTRATING.

Thanks!

0 Me gusta
Responder
1.075 Vistas
20 Respuestas
Respuestas (20)

paullimapa
Mentor
Mentor

TO save yourself some time & energy you may just download the free DWG Purge add-in which has an option to do a Batch Dwg purge of all drawings selected or in a folder:

Drawing Purge | AutoCAD | Autodesk App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

imadHabash
Mentor
Mentor

Hi,

>> but our production machines are still on Autocad 2012.

We can give and afford many suggestions and solutions .. But we can avoid it if you use a newer version of AutoCAD .. with AutoCAD2012 ( 11 years old ) you have to expect such a problem and more !! 

 

All the best ..

Imad Habash

EESignature

RobDraw
Mentor
Mentor

@imadHabash wrote:

with AutoCAD2012 ( 11 years old ) you have to expect such a problem and more !! 


This problem has nothing to do with versioning and using an old version is not a recipe for problems. Where did you get that from?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.

Michiel.Valcke
Advisor
Advisor

I tried to purge your linetypes with Acad 2023, but even there the linetypes were not 'recognized' nor 'purgeable'. Most likely the linetypes are generated by a program or routine on your system, and even though they appear in the list with linetypes. Purge does not detect them.

I could remove them from the drawing by performing a wblock of the entire drawing. All unused items were completely removed. I'm not 100% sure, but WBLOCK should exist in AutoCAD 2012

RobDraw
Mentor
Mentor

Yes. WBlock has been around since the beginning of time. It is one.of the easiest and most effective ways to get rid of unwanted junk.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Me gusta

imadHabash
Mentor
Mentor

click on below image to see how by _purge ( regapps ) and Purge command will get rid from all unwanted items .

purge.gif

Imad Habash

EESignature

paullimapa
Mentor
Mentor

As a follow up to my previous post The free Drawing Purge app supports AutoCAD 2012. I’ve used the batch drawing purge all the time and works great especially when even Wblock fails also.  But FYI when I did a WBlock using latest version of AutoCAD the extra info did not come with it. 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Me gusta

rkmcswain
Mentor
Mentor
@RobDraw wrote:

This problem has nothing to do with versioning and using an old version is not a recipe for problems. Where did you get that from?

Exactly.

 

If anything, use of an older version should reduce the chances of file corruption since there is less buggy code to cause such issues.

R.K. McSwain     | CADpanacea | on twitter

rkmcswain
Mentor
Mentor

To answer your question directly, you can use one of the relatively new features of AutoCAD in the Purge dialog - the "Find Non-Purgable Items".

 

Keep in mind the nested nature of table objects in AutoCAD. For example, I selected the first textstyle, and it tells you that it is being used in 3 linetype definitions.

 

rkmcswain_0-1658612878390.png

 

Then I went to the linetype definition containing the string "CITY_WATER", and there is the "stuck reference" - objects in a block definition. So why aren't the blocks showing up anywhere? They are all (2782 of them) anonymous blocks, which also explains the 2MB file size for what appears to be an empty drawing.

 

rkmcswain_1-1658613012126.png

 

 

R.K. McSwain     | CADpanacea | on twitter

paullimapa
Mentor
Mentor

What I find strange is that the OP states a "WBlock of a SINGLE LINE object from a screwed up drawing"

But strangely those extra information came along with it which I've not been able to reproduce when I do a WBlock command.  Either the OP does NOT know how to correctly create a WBlock or something else is going on back in AutoCAD 2012.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

rkmcswain
Mentor
Mentor

@paullimapa - perhaps just a misuse of words. Since the DWG is named what looks like a production drawing name, maybe OP did an ERASE > ALL, except for the one line.

 

Attached is the same DWG with all of the anonymous blocks inserted so that the contents are visible entities.

R.K. McSwain     | CADpanacea | on twitter
0 Me gusta

paullimapa
Mentor
Mentor

Hopefully @SRodgers723 will respond to clarify exactly how the WBlock was created.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Me gusta

SRodgers723
Explorer
Explorer

Thanks to SOME of you for giving me the benefit of the doubt when it comes to "creating a Wblock", as I did mention I've been using Autocad for DECADES. lol

I had a "screwed up" drawing, I drew a new line on a particular layer (with BYLAYER linetype, color, etc.) and THEN used the WBLOCK command to write out (to a separate file) that single line (which should only bring the LAYER with it).

That's IT.  So HOW do all those linetypes and text styles get brought along, especially since WBlocking is normally used to GET RID OF crap like that.  That's my issue.

And yes, I know I can use newer Autocad to Purge this crap (and maybe even the 3rd party purge app), so getting them purged is less of the question THAN WHY IS IT DOING THAT, as it wold be nice to avoid whatever cause this to begin with.  :cara_con_una_leve_sonrisa:

Thanks for all the timely responses everybody!!

0 Me gusta

paullimapa
Mentor
Mentor

perhaps you can upload a smaller sample drawing where when the same WBlock sequence will again yield the extra stuff that came along with your WBlock so everyone here can give it a try on the version of AutoCAD being used now?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Me gusta

rkmcswain
Mentor
Mentor
@SRodgers723 wrote:

I had a "screwed up" drawing, I drew a new line on a particular layer (with BYLAYER linetype, color, etc.) and THEN used the WBLOCK command to write out (to a separate file) that single line (which should only bring the LAYER with it).

That's IT.  So HOW do all those linetypes and text styles get brought along, especially since WBlocking is normally used to GET RID OF crap like that.  That's my issue.

When we take the DWG you posted and WBLOCK it (entire drawing option) to a new file, the anonymous blocks do not come along for the ride. I can't see why they would have when you WBLOCK'ed that single line.

 

In any case, I identified where the linetypes and textstyles are stored. Someone at some point created these anonymous blocks.

 

Why they went along for the ride in your WBLOCK case, is anyone's guess. We don't have access to the internal code, so unless you can find the guy who wrote it, it's probably going down as an unresolved mystery.

 

 

R.K. McSwain     | CADpanacea | on twitter
0 Me gusta

artc2
Autodesk
Autodesk
The dwg file you attached contains DGN linetypes. DGN linetypes can reference anonymous blocks which can contain geometry that uses other linetypes, so those blocks and other linetypes would then not be purgeable since they are referenced by the DGN linetypes.

Up until a few years ago there was a bug that caused all DGN linetypes to be cloned as part of a wblock clone operation.

Also, up until a few years ago purging a DGN linetype did not purge the underlying DGN linetype data objects in the drawing which included the anonymous blocks and references linetypes.

paullimapa
Mentor
Mentor

@artc2 thanks for your post...this clearly explains how @SRodgers723 using older version of AutoCAD 2012 to do WBlock would carry all those extra microstation linetypes over which has been resolved now in later versions of AutoCAD.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

SRodgers723
Explorer
Explorer

As a follow up, it makes sense the whole DGN thing, someone previously screwed up the drawing and never cleaned it.

It is unfortunate that 2012 can't fix it with the typical method of wblocking.  Just for all the nay sayers, I opened (using 2012) the posted file, and WB'd the entire drawing (as previously mentioned) AND also WB'd the Line Obj out as another file, AND all that extra crap is STILL in the new files! (see attached for yourself)  Quite the Head-Scratcher.  I guess I have to bite the bullet and do a batch super purge and just rebuild all the unused layers, just a lot of work I was trying to avoid.  Thanks Everybody!  If anyone else also has 2012 and wants to see if they get the same result, i would to know if it is MY 2012 that's glitchy or ALL of them.  I would also not be hurt if someone did the same test on 2014, 2016, or 2018. :cara_con_una_leve_sonrisa:

0 Me gusta

RobDraw
Mentor
Mentor

This used to be a huge issue for a lot of people. At some point, Autodesk was able to address it. Someone here probably knows the timeline on that.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Me gusta