Author Topic: file bloat/infection  (Read 12127 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
file bloat/infection
« on: November 30, 2016, 09:43:36 AM »
We are experiencing a problem with some files where they are becoming increasingly slow to open.
It started with a single user's computer and anything they would open and save would become infected.
Opening the file doesn't do anything, but if you copy objects from that file into any other file, it then becomes infected.
The issue is much like the DGN one, but that is not the problem.
If anyone has any ideas, I would greatly appreciate it.

I have attached a simple cover sheet file that has the issues.
We're currently running Civil 3D 2013.
The really odd thing is, if you open the file with plain autocad, MOST of the files open without issue.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: file bloat/infection
« Reply #1 on: November 30, 2016, 10:13:59 AM »
Styles and other C3D data-only content?  Does this happen on a computer with only AutoCAD (C3D enabler turned off/not present)?
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #2 on: November 30, 2016, 10:18:49 AM »
Styles and other C3D data-only content?  Does this happen on a computer with only AutoCAD (C3D enabler turned off/not present)?
All computers are running Civil 3D.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 7527
Re: file bloat/infection
« Reply #3 on: November 30, 2016, 10:20:25 AM »
Opened fine here with C3D 2017. How does the attached drawing behave for you?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #4 on: November 30, 2016, 11:09:37 AM »
Opened fine here with C3D 2017. How does the attached drawing behave for you?
It hung at 87% on open like the one I posted, and it also hung at 87% when I ran a purge.
What I don't understand is how your file is almost a mb smaller. What did you do to the drawing?
When I saved your drawing, it immedietly went to 2.5mb.
I then removed the support path that includes our acaddoc.lsp startup file and opened a fresh download of your file, it opened fine, but when I saved it, it went to 2.5mb again. wth??!?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #5 on: November 30, 2016, 11:20:37 AM »
To add more confusion, I closed all sessions of cad, then opened a fresh Ron download, saved, and the filesize barely increased. I'm even more confused.
If I open one of the "infected" files, it still takes forever to finally open.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #6 on: November 30, 2016, 11:23:08 AM »
One more wrinkle, if I have an infected file open, then I open a fresh Ron download file in the same session and save, the drawing bloats an additional MB. WTF is going on!?!?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Re: file bloat/infection
« Reply #7 on: November 30, 2016, 11:26:19 AM »
There is a known issue with file bloat/slow open for C3D 2013-2017. It has been corrected in the latest service packs for 2016 & 2017, and there is a fix available for 2014 & 2015. Unfortunately, 2013 was not included in the released fixes...perhaps a call to your reseller may get you something that works for 2013.

See this article for more info: http://cadpanacea.com/wp/?p=1837

ronjonp

  • Needs a day job
  • Posts: 7527
Re: file bloat/infection
« Reply #8 on: November 30, 2016, 11:39:16 AM »
Opened fine here with C3D 2017. How does the attached drawing behave for you?
...
What I don't understand is how your file is almost a mb smaller. What did you do to the drawing?
...
Just a quick wblock over itself without saving changes :) .. I do this to every file I get to get the 'crap' out.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #9 on: November 30, 2016, 11:43:03 AM »
There is a known issue with file bloat/slow open for C3D 2013-2017. It has been corrected in the latest service packs for 2016 & 2017, and there is a fix available for 2014 & 2015. Unfortunately, 2013 was not included in the released fixes...perhaps a call to your reseller may get you something that works for 2013.

See this article for more info: http://cadpanacea.com/wp/?p=1837
Lovely. Well, we need to upgrade anyway.
Thank you, Jeff.
What I don't understand is how we've run c3d 2013 without issues for several years without issue then the problem begins with one user who hasn't had anything changed on his computer.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #10 on: November 30, 2016, 12:06:52 PM »
Opened fine here with C3D 2017. How does the attached drawing behave for you?
...
What I don't understand is how your file is almost a mb smaller. What did you do to the drawing?
...
Just a quick wblock over itself without saving changes :) .. I do this to every file I get to get the 'crap' out.
How'd you wblock it out and keep all the contents in the sheet layout?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 7527
Re: file bloat/infection
« Reply #11 on: November 30, 2016, 01:11:14 PM »
Opened fine here with C3D 2017. How does the attached drawing behave for you?
...
What I don't understand is how your file is almost a mb smaller. What did you do to the drawing?
...
Just a quick wblock over itself without saving changes :) .. I do this to every file I get to get the 'crap' out.
How'd you wblock it out and keep all the contents in the sheet layout?
Code - Auto/Visual Lisp: [Select]
  1. (defun c:purgeitfoo (/ c e)
  2.   ;; Ronjonp quick purge 11.30.2016
  3.   ;; Use at your own risk 8-)=
  4.   (if (and (= (getvar 'dwgtitled) 1) (/= (getvar 'writestat) 0))
  5.     (progn (acad-push-dbmod)
  6.            (setq e (getvar 'expert))
  7.            (setq c (getvar 'cmdecho))
  8.            (setvar 'expert 5)
  9.            (setvar 'cmdecho 0)
  10.            (setvar 'ctab "Model")
  11.            (if (= 0 (getvar 'worlducs))
  12.              (command "_.ucs" "_World")
  13.            )
  14.            (command "_.-wblock" (strcat (getvar 'dwgprefix) (getvar 'dwgname)) "*")
  15.            (setvar 'expert e)
  16.            (setvar 'cmdecho c)
  17.            (acad-pop-dbmod)
  18.            (if (= 0 (getvar 'cmdactive))
  19.              (vl-cmdf "_.close" "_Yes")
  20.            )
  21.     )
  22.     (alert "\nThis routine only works on drawings that have been saved or not readonly.")
  23.   )
  24.   (princ)
  25. )


Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: file bloat/infection
« Reply #12 on: December 01, 2016, 08:31:42 AM »
Cool! Thank you.
I didn't even realize wblock would do that.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 7527
Re: file bloat/infection
« Reply #13 on: December 01, 2016, 09:43:01 AM »
Cool! Thank you.
I didn't even realize wblock would do that.
:)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: file bloat/infection
« Reply #14 on: December 01, 2016, 11:57:19 AM »
Word to the wise: Set all viewports and all spaces (i.e. model-space, paper-space) to the World Coordinate System (WCS) before using the WBlock cleaning technique (or -ExportToAutoCAD) lest some drawings go wharrgarbl.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst