PDA

View Full Version : Extraneous Garbage in DWG through Reactors


jack.foster
2005-05-28, 02:04 AM
I have a drawing that somehow is getting megabytes of totally unrelated worthless data put into it. I created a new drawing of only 34Kb and I opened the BAD drawing and did a copy paste of one polyline. I pasted that polyline into the other drawing but I hit escape before I picked the insert point. I then did a qsave of the original drawing. It went from 34Kb to 5,776,000 Kb and there is nothing in the drawing. Doing a DXF out I get a file of over 4 megs with all kind of garbage. I originally ran into this type problem in acad 2002 and Robert Bell had a Layer Filter Delete program that flushed this **** out. I am now in AutoCAD 2005 and the LFD program does not flush the **** away anymore. One time I ran the program and the DXFOUT file decreased by 800,000 bytes but it was still 3 megs plus for an empty drawing and the DWG file was still 5 megs. When I looked in the DXF file I found dozens of acad-reactors are present but I am not using any reactors to the best of my knowledge. Certainly none that I have written into any programs as I have never learned how to use reactors.

Does anybody have any clues or better yet a solution for this. What makes this so really horrible is that it will take 30 seconds or more to open a very simple drawing that would normally open in 3 seconds or less. Thanks a whole bunch for any help you can give me. Sincerely, Jack Foster.

Mike.Perry
2005-05-28, 02:11 AM
I am now in AutoCAD 2005 and the LFD program does not flush the **** away anymore.Hi

See here (http://forums.augi.com/showthread.php?t=4342) for an updated version (AutoCAD 2005 or higher) of Robert Bell's infamous Layer Filter Delete routine.

Have a good one, Mike

jack.foster
2005-05-28, 02:24 AM
Mike you are sure quick and Robert Bell has performed miracles for me before. However, when I went to the thread and downloaded the last post of this and ran it unfortunately it did not purge the **** from the drawing. My luck leaves a lot to be desired sometimes. I also wish I knew what was causing this so I could annilate it also. This is an awful lot of unnecessary work for sure. I am not sure what size of file we can attach but I guess I will try and attach the file in zip format in the hopes that Robert will want to play with it. Gotta love that Robert Bell. Thanks again for the quick reply.

Mike.Perry
2005-05-28, 02:35 AM
However, when I went to the thread and downloaded the last post of this and ran it unfortunately it did not purge the...Hi

Just checking here - you did take and use Robert's code from this (http://forums.augi.com/showthread.php?p=26883#post26883) post...

Have a good one, Mike

Mike.Perry
2005-05-28, 02:41 AM
Hi

Using Robert's Layer Filter Delete routine as referenced above -

Original -> New_00004.dwg -> 5.39 MB (5,655,405 bytes)

After running Robert's routine -> New_00004.dwg -> 1.53 MB (1,604,711 bytes)

Have a good one, Mike

jack.foster
2005-05-28, 03:30 AM
I tried the program and got nothing and it was the last post in the one you referenced. The file should only be a 40k or so. There is only one polyline that is a structural steel beam in the drawing. I also downloaded and tried the CDGPurge command that was mentioned in that link you gave me. It ran in 2002 but in 2005 the same VLX file loaded does not recognize the same command name to type and run. Can you say "Jack your luck is really bad!" IT did not reduce the file size one byte. I just don't understand how all these megabytes of **** can be attached to one little line. For example, I did a copy/paste of one line into a blank drawing and it swelled to 5.7 megs. I then pasted another line into the same drawing and the file size ballooned up to 11 megs. Two little lines and the file is 11 megs. When the lines were drawn originally the file size was normal small file. By simply opening and closing the file it gets this **** added to it. Total insanity! Thanks for the help. I think Autodesk needs to do something about this. Have a good weekend, Jack.

Mike.Perry
2005-05-28, 03:40 AM
Using Robert's Layer Filter Delete routine as referenced above -

Original -> New_00004.dwg -> 5.39 MB (5,655,405 bytes)

After running Robert's routine -> New_00004.dwg -> 1.53 MB (1,604,711 bytes)Hi

Please refer to attached drawing file -

New_00004_MikePerry.dwg -> 26.1 KB (26,826 bytes)

I performed above procedure, then simply WBlocked the Polyline (Structural Steel Beam) out to a new drawing file.

Have a good one, Mike

RobertB
2005-05-31, 11:40 PM
Mike you are sure quick and Robert Bell has performed miracles for me before. ... I am not sure what size of file we can attach but I guess I will try and attach the file in zip format in the hopes that Robert will want to play with it. Gotta love that Robert Bell. Thanks again for the quick reply.Thanks Jack! BTW, there is a tool available on Shaan Hurley's blog (http://autodesk.blogs.com/between_the_lines/2004/12/layer_filter_an.html) for stripping layer filters and AppIDs that works very well.

jack.foster
2005-06-02, 03:16 AM
Well as I somewhat jokingly say "My luck or the kiss of death from the Godfather" take your choice as neither one is any good. Robert thanks for the tip on Shaan's site to purge layer filters and app id's. Unfortunately it did not phase the drawing one little bit. I saw in the readme that James Maeding who originally worked this up gave his e-mail address with the opportunity to reply. I am going to e-mail him and ask if I can send him my really screwed up drawing to maybe pass on to Autodesk. Thanks a whole bunch to Mike and Robert for trying to help me solve this. As a last resort I may try the WBLOCK but there are several drawings messed up. The other thing that drives me crazy is that I don't know where this comes from. Some of the drawings in the folder are fine and normal and others are huge. All have only been opened and worked on by myself. I keep telling management that I am exempt from drug testing if this keeps up. Thanks again, Jack Foster.

RobertB
2005-06-02, 05:26 AM
Well, I downloaded your bad file, to do some detective work. First, I noticed that, although it appears to be a simple drawing, there are over 91,000 objects. These objects are proxies on my end, and created by an app named "Pro_Stahl_3D".

peter
2005-06-02, 02:28 PM
I found 90000 dictionary records under ks_groupdatadictionary

Peter Jamtgaard

Here is a fix


(defun C:DeleteKSDicts (/ strDictionary)
(vlax-for objDictionary
(vla-get-dictionaries
(vla-get-activedocument
(vlax-get-acad-object)
)
)
(if (and (vlax-property-available-p objDictionary "name")
(= (strcase (substr (vla-get-name objDictionary) 1 2)) "KS")
)
(vla-delete objDictionary)
)
)
)

jack.foster
2005-06-04, 12:47 AM
Robert Bell, if I could personally hand you an ATTABOY I would do such. At least I now know where the garbage is coming from and I can contact them about how to get rid of it. The version of the program I am using is Bentley AutoPLANT Structural Steel program which they just buy and resell. Don't much like the program as it is not accurate a lot of the time and it uses NO native AutoCAD entities. User interface leaves a lot to be desired also. If you happen to know of a cure for this or any wild guesses as to how it ends up in some drawings I would appreciate it. Thanks a whole bunch once again. Sincerely, Jack Foster.

jack.foster
2005-06-04, 12:59 AM
Peter, I am also awarding you a GIANT ATTABOY as your program proceeded to delete all that garbage that was left in the drawing and was totally worthless. Your post just came online while I was replying to Robert Bell. The AUGI guilds are truly wonderful! What makes me smile even more is when I mentioned belonging to them one of the CAD people here laughed at me like I was stupid. If he only knew, and I tried to tell him, how really great they are. Thanks a whole bunch to everyone in the AUGI guilds. Very sincerely, Jack Foster.