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

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

dgorsman

  • Water Moccasin
  • Posts: 2182
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: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 6183
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 10 x64 - AutoCAD 2017

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

Jeff_M

  • King Gator
  • Posts: 3879
  • 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: 6183
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 10 x64 - AutoCAD 2017

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 6183
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 10 x64 - AutoCAD 2017

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5308
  • 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 2013 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 6183
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 10 x64 - AutoCAD 2017

Custom Build PC

MP

  • Seagull
  • Posts: 16905
  • brevity != aggression
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.
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox | About

Jeff H

  • Needs a day job
  • Posts: 5759
Re: file bloat/infection
« Reply #15 on: December 01, 2016, 12:25:55 pm »
Cool! Thank you.
I didn't even realize wblock would do that.
How is wblock doing that?

MP

  • Seagull
  • Posts: 16905
  • brevity != aggression
Re: file bloat/infection
« Reply #16 on: December 01, 2016, 12:27:48 pm »
*
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox | About

ronjonp

  • Needs a day job
  • Posts: 6183
Re: file bloat/infection
« Reply #17 on: December 01, 2016, 02:10:25 pm »
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.
Quick test in 2017 & viewports remain unchanged in paperspace so long as the wblock is done from modelspace & set to world.

Windows 10 x64 - AutoCAD 2017

Custom Build PC

MP

  • Seagull
  • Posts: 16905
  • brevity != aggression
Re: file bloat/infection
« Reply #18 on: December 01, 2016, 02:17:01 pm »
... as long as the wblock is done from modelspace & set to world.

Yep. :thumbs_up:
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox | About

alanjt

  • Needs a day job
  • Posts: 5308
  • Standby for witty remark...
Re: file bloat/infection
« Reply #19 on: December 02, 2016, 09:46:38 am »
... as long as the wblock is done from modelspace & set to world.

Yep. :thumbs_up:
Same. Only works from model. Pretty cool.
Civil 3D 2013 ~ Windohz 7 64bit
Dropbox