Author Topic: Files data referencing surface/pipe network freezing  (Read 7533 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Files data referencing surface/pipe network freezing
« on: December 02, 2021, 11:58:39 AM »
I've encountered on a couple projects recently my files will start freezing when I try and open them after having updated something in my design file where my surface/pipe network resides.

It all appears to be as if something has become corrupt in the design file (where the surface/pipe network resides). The odd thing is, I can open the design file and make edits without issue, but when I then open the grading plan, it freezes trying to synchronize.

I can't figure out what is happening to the files to cause such an issue, as it will be fine and everything syncs properly, then I'll make one change to the grading and suddenly everything takes forever to load or just crashes.

I did notice, on a project, if I copies just some polylines out of the design file into a blank drawing, the file blank file would become rather bloated in size. After wblocking the plines out to a r12 dxf and then inserting that into a blank file, it would be a manageable size again. It's like something is attaching itself to all the objects within the file, which makes reading the file when syncing data references either crash c3d or just take forever to load.

Any thoughts/help on this would be greatly appreciated.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

BlackBox

  • King Gator
  • Posts: 3770
Re: Files data referencing surface/pipe network freezing
« Reply #1 on: December 02, 2021, 12:49:45 PM »
Long time, my friend - hope you and the family are doing well.

Could be unrelated, but I too was having some issues with C3D crashing, bloating, etc and discovered through working with product team that we'd somehow gotten some AECB_* (Electrical) dictionaries from consultant drawings, which doesn't fare well when using C3D.

*IF* you have something similar, this may help:

Code: [Select]
(defun c:DeleteDictionaries (/ oDict name data)

  (if (vl-string-search
"2022"
(vl-registry-read
  (strcat
    "HKEY_LOCAL_MACHINE\\"
    (if vlax-user-product-key ; If 2013+
      (vlax-user-product-key) ; Use new function
      (vlax-product-key) ; Use legacy function
    )
  )
  "ProductName"
)
      )
    (progn
      (princ "\n")
      (command "_.PURGEHIDDENALIGNSFROMSITES")
      (princ "\n")
    )
  )
 
  (command "_.AECCPURGEACANODOBJECTS")
  (princ "\n")
 
  (vlax-for x (setq oDict
     (vla-get-dictionaries
       (vla-get-activedocument (vlax-get-acad-object))
     )
      )
    (if
      (and
(vlax-property-available-p x 'name)
(not (vl-position (setq name (vlax-get x 'name)) data))
      )
       (setq data (cons name data))
    )
  )
  (if data
    (foreach x '(
"SVY_VEHICLETRACKING_DATA"
"AECB_CABLETRAY_PARTCATPREF_STYLES"
"AECB_CONDUIT_PARTCATPREF_STYLES"
"AECB_CONNECTOR_STYLES"
"AECB_DUCT_PARTCATPREF_STYLES"
"AECB_LABELCURVE_STYLES"
"AECB_VOLTAGEDEFINITIONS"
)
      (if (vl-position x data)
(progn
  (vla-delete (vla-item oDict x))
  (prompt
    (strcat
      "\n** \""
      x
      "\" Dictionary deleted ** \n"
    )
  )
)
      )
    )
  )
  (princ)
)

Cheers
« Last Edit: December 02, 2021, 01:20:39 PM by BlackBox »
"How we think determines what we do, and what we do determines what we get."

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Files data referencing surface/pipe network freezing
« Reply #2 on: December 02, 2021, 05:51:41 PM »
Totally Agree with BlackBox. Also, for my testing, i usually try two things, one create a dummy file and data ref into that file. See if you get the same results as the grading plan. If that is the case, then your right, theres issues within source file. Might need to migrate that to a new file.

Either way, I think purging the junk out is the 1st way to go.

Hope that helps alittle.
Civil3D 2020

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Files data referencing surface/pipe network freezing
« Reply #3 on: December 03, 2021, 02:23:57 PM »
Quote
1549875 AECB_VOLTAGEDEFINITIONS objects have been purged.

You are my savior! Thank you. I will definitely be more careful with what I receive from architects.

It has been a long time. Hope you are well. :)
« Last Edit: December 16, 2021, 08:37:55 AM by alanjt »
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox