Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: DGN to DWG - Heavy Files

  1. #1
    Active Member
    Join Date
    2005-03
    Location
    From Kerala, Currently located at Bangalore, India
    Posts
    95
    Login to Give a bone
    0

    Default DGN to DWG - Heavy Files

    Hi All,
    We have DGN to DWG converted files which are very heavy and slow to work. I thought of removing the AEC content / proxy content so that we could sanitize the files. I tried a lisp file got from;

    http://forums.autodesk.com/t5/Visual...1988842/page/2
    which follows like this;

    Code:
    (defun c:urgedictionary()
    (foreach i(entget(namedobjdict))(and(=(car i)3)(princ"\n")(princ(cdr i))))
    (foreach i(entget(namedobjdict))(and(=(car 
    i)3)(dictremove(namedobjdict)(cdr i))))
    (princ"\n\n--\n\n")
    (foreach i(entget(namedobjdict))(and(=(car i)3)(princ"\n")(princ(cdr i))))
    (princ)
    )
    What I did is here.

    First I changed the "c:urgedictionary", which defines the command name, to "c:Proxyremove" (Optional step).
    I added this code to the main acad2014doc.lsp file, so that the command loads everytime you open a document.
    Then I Created a AutoCAD script file (removeproxy.scr) which had the following;

    PROXYREMOVE
    -PURGE
    R
    *
    N
    -PURGE
    ALL
    *
    N
    QSAVE

    Used the ScriptPro utility to run the script on multiple file.
    This way it took only a few seconds for one file to be cleaned up.

    This did reduce the file sizes from, say 30-40 MBs to kbs..!! But at the same time this screwed up the drawing annotations, layers etc. Some drawings have their complete layers purged and all entities got shifted to one single layer.... Some lost the scale lists...

    Like this each file has different issues after running it.
    I believe the proxy elements would have been spread both inside and outside some blocks...

    Could some one help me...??
    Last edited by harilalmn; 2014-02-12 at 11:51 AM.

  2. #2
    Active Member
    Join Date
    2005-03
    Location
    From Kerala, Currently located at Bangalore, India
    Posts
    95
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    Dear all,
    Can someone help me with this...?

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    Quote Originally Posted by harilalmn View Post
    I added this code to the main acad2014doc.lsp file, so that the command loads everytime you open a document.
    This does not pertain to your main query, but as a general rule you should not edit "acad2014doc.lsp".
    Create your own file named "acaddoc.lsp" and put your user-defined code in there.
    Ref: http://docs.autodesk.com/ACD/2014/EN...7729D42520.htm
    R.K. McSwain | CAD Panacea |

  4. #4
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,658
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    This may help.
    AutoCAD® DGN Hotfix: http://knowledge.autodesk.com/suppor...gn-hotfix.html

  5. #5
    Active Member
    Join Date
    2005-03
    Location
    From Kerala, Currently located at Bangalore, India
    Posts
    95
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    Tried it.... but it was taking 1 hour for a single file....!!! Doing it on 560 files means it would take around 560 hours... which could never be affordable. .. Thats why I thought of seeking a lisp routine.

    Another twist which was noticed is that this lisp routine does not do harm to the file when run manually. But calling the command from script is gives horrible outputs. Dont know if it is because of the script or the peogram Script pro. Any other practical solutions....?

  6. #6
    Active Member
    Join Date
    2005-03
    Location
    From Kerala, Currently located at Bangalore, India
    Posts
    95
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    Is thee really no way to purge the AEC elements ONLY using lisp?
    I am sure lisp is so powerful and it always does miracles...!
    Only thing is I seem to be unlucky..!!

  7. #7
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    Quote Originally Posted by harilalmn View Post
    Is thee really no way to purge the AEC elements ONLY using lisp?
    Using what product? Vanilla AutoCAD?
    R.K. McSwain | CAD Panacea |

  8. #8
    Active Member
    Join Date
    2005-03
    Location
    From Kerala, Currently located at Bangalore, India
    Posts
    95
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    No... AutoCAD 2014 Full Version

  9. #9
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,658
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    -EXPORTTOAUTOCAD, AECTOACAD or saving as an r12 version should do it. What vertical and version of AutoCAD are you using? The original version of AutoCAD® DGN Hotfix had problems and was taken down. I noticed the link you provided gives the message "This widget could not be displayed." You may be running the wrong version.

  10. #10
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: DGN to DWG - Heavy Files

    Quote Originally Posted by Tom Beauford View Post
    The original version of AutoCAD® DGN Hotfix had problems and was taken down. I noticed the link you provided gives the message "This widget could not be displayed." You may be running the wrong version.
    The issue with the original version was that it "resulted in the linetypes having missing components when the drawings were reloaded" for "certain linetypes based on DGN linestyles". So I took that to mean in a worst case scenario, it might break some DGN linetypes that were actually used in the DWG.

    It shouldn't be an issue that would cause it to "take 1 hour on a single file". I had a lot of polluted DWG files, and the DGNPURGE command never took longer than several seconds to complete.
    R.K. McSwain | CAD Panacea |

Page 1 of 3 123 LastLast

Similar Threads

  1. KV-I HEAVY TANK
    By jerry-hsu in forum AutoCAD Gallery
    Replies: 5
    Last Post: 2012-12-19, 03:14 AM
  2. Heavy End Annotation
    By Burt'o in forum Revit Architecture - General
    Replies: 4
    Last Post: 2004-12-01, 10:44 PM
  3. Heavy clay tile
    By David in forum Revit Architecture - General
    Replies: 0
    Last Post: 2004-09-17, 04:56 PM
  4. Heavy end arrow
    By tarch in forum Revit Architecture - General
    Replies: 9
    Last Post: 2004-06-16, 03:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •