AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Distinguished Mentor
JeffPaulsen
Posts: 776
Registered: ‎09-01-2004
Message 1 of 18 (412 Views)
Accepted Solution

Super Sized Drawing File Challenge

412 Views, 17 Replies
12-30-2013 03:06 PM

Anyone bored and looking for a challenge?

 

I've seen this type of post several times and don't usually have problems reducing file size. However, this one has me stumped.

 

I received a drawing from another consultant that uses C3D 2013. When I open the drawing in C3D 2012 I get the message that it was created in a newer version of C3D so I assume he did a saveas to 2010.

 

When I get drawings like this I copy what I need to the clipboard and paste into a new drawing (acad.dwt). This usually works fine. But in this case the drawing is almost 4 MB and contains just one arc. I purged everything I can from the drawing and it is still 3 MB.

 

I looked for but could not find any of the usual suspects: drawing scales, regapps, empty text objects and wipeouts. When I list "all" there is one arc in model space and 4 viewports in paper space. I did notice that there are hundreds of linetypes and text styles that cannot be purged.

 

I tried export to AutoCAD DWG 2010, 2007, 2004 and 2000 but that didn't help. Export to AutoCAD DWG R14 and DXF R12 both caused C3D to become unresponsive. Saveas to DWG R14 and DXF R12 caused C3D to become unresponsive.

 

If anyone can figure out what is making this drawing so large it would be greatly appreciated since the person that sent it to me is on vacation until next week.

 

Jeff Paulsen
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600

While the lisp in my last post removes the 2800+ anonymous blocks, it only drops the file size by ~1mb. Further investigation finds that there are 33097 items listed in the "ACAD_DGNLINESTYLECOMP" Dictionary. Deleting this dictionary drops the files size down to 450kb.

 

This lisp will remove that Dictionary.

(defun c:deldgnltstyle ( / dicts dict)
(setq
dicts (vlax-get (vla-get-activedocument (vlax-get-acad-object))
'dictionaries
)
)
(setq dict (vlax-invoke dicts 'item "ACAD_DGNLINESTYLECOMP"))
(princ (strcat "\nDGN Linetypes before: "
(itoa (vla-get-count dict))
)
)
(vla-delete dict)
(princ "\nACAD_DGNLINESTYLECOMP Dictionary removed!")
(princ)
)

 

You're a life saver Jeff. Thank you.

 

As it turns out if I delete the "ACAD_DGNLINESTYLECOMP" Dictionary using your lisp routine above, it exposes the anonymous blocks to the AutoCAD purge command. I am in the process of running the lisp routine and purging all of the drawings in the project.

 

I beleive this has something to do with the DGN hotfix refered to by smizsak.

 

I will contact the author of the drawing next week when he returns from vacation and try to determine how he created the drawing. I will post any updates here.

*Expert Elite*
Jeff_M
Posts: 4,376
Registered: ‎07-22-2003
Message 2 of 18 (408 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:11 PM in reply to: JeffPaulsen

Can you post or send the dwg? jeffm AT quuxsoft DOT com

Jeff_M, also a frequent Swamper
Distinguished Mentor
JeffPaulsen
Posts: 776
Registered: ‎09-01-2004
Message 3 of 18 (405 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:13 PM in reply to: Jeff_M

I thought I did post the drawing. I will try again.

Jeff Paulsen
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600
*Expert Elite*
sboon
Posts: 2,133
Registered: ‎11-08-2005
Message 4 of 18 (404 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:16 PM in reply to: JeffPaulsen

Perhaps a proxy object that cannot be displayed for some reason?  If you use the quick select tool from the Properties dialog what object types are listed there?  I don't see any mention of Auditing, have you tried that yet?

 

Steve
Please use the Accept as Solution or Kudo buttons when appropriate

 

Distinguished Mentor
JeffPaulsen
Posts: 776
Registered: ‎09-01-2004
Message 5 of 18 (396 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:20 PM in reply to: sboon

An audit returned the following:

 

Command: audit

Fix any errors detected? [Yes/No] <N>: y

 

Auditing Header


Auditing Tables


Auditing Entities Pass 1

Pass 1 83800 objects audited
Auditing Entities Pass 2

Pass 2 83800 objects audited
Auditing Blocks

2851 Blocks audited

Total errors found 0 fixed 0

Erased 0 objects

Jeff Paulsen
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600
Distinguished Mentor
JeffPaulsen
Posts: 776
Registered: ‎09-01-2004
Message 6 of 18 (393 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:26 PM in reply to: JeffPaulsen

I fixed it but still have no idea how this drawing was created.

 

As I was typing my description in the first post I realized I hadn't tried any other DXF formats besides R12. I saved as a 2010 DXF. I opened the DXF and was able to purge 2850 blocks, 1218 linetypes, and 130 text styles.

 

The blocks were all unnamed blocks (name began with an asterisk). Is there a better way to find and/or select unamed blocks? Ssget"x" didn't even find them in the original drawing.

Jeff Paulsen
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600
*Expert Elite*
sboon
Posts: 2,133
Registered: ‎11-08-2005
Message 7 of 18 (392 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:26 PM in reply to: JeffPaulsen

If I`m right about the proxy graphics then this link might help.

 

Steve
Please use the Accept as Solution or Kudo buttons when appropriate

Distinguished Mentor
JeffPaulsen
Posts: 776
Registered: ‎09-01-2004
Message 8 of 18 (385 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 03:33 PM in reply to: sboon

Thanks for the suggestion Steve. But AECTOAcad executes the -EXPORTTOAUTOCAD command in C3D and I already tried that. The problem was a bunch of unnamed blocks I could not list or purge until making a DXF file from the DWG.

Jeff Paulsen
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600
*Expert Elite*
sboon
Posts: 2,133
Registered: ‎11-08-2005
Message 9 of 18 (373 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 04:07 PM in reply to: JeffPaulsen

It runs the command, but the options are different and it seems to offer more controls.  I haven`t really tried it but it may be worth some experimenting.

 

Steve
Please use the Accept as Solution or Kudo buttons when appropriate

Distinguished Mentor
JeffPaulsen
Posts: 776
Registered: ‎09-01-2004
Message 10 of 18 (371 Views)

Re: Super Sized Drawing File Challenge

12-30-2013 04:09 PM in reply to: sboon

I did try it. I am not sure if it gives more options but it definitely provides more control to the user.

Jeff Paulsen
Civil 3D 2012 SP3 | Win 7 64-bit SP1
Xeon E5-1620 @ 3.60GHz, 16GB Ram | NVidia Quadro 600
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.