Visual LISP, AutoLISP and General Customization

Distinguished Contributor
Posts: 159
Registered: ‎08-26-2003
Message 21 of 28 (1,338 Views)

Re: Batch convert DGN to DWG

04-27-2012 02:17 AM in reply to: ddotten

I suspect that the action of opening a new drawing stops the execution of the lisp routine in the original drawing unttil the focus is returned to the original drawing. This is the reason I use a different mode for DGNIMPORT in AutoCAD 2012. I think that I'm not able to find a solution for AutoCAD version 2011.

New Member
Posts: 1
Registered: ‎05-30-2012
Message 22 of 28 (1,299 Views)

Re: Batch convert DGN to DWG

05-30-2012 09:26 PM in reply to: mmoolhuysen

first thankx sir



i try this tool in autocad 2012 but it is not working sir,some option is comming (Enter filename for DGN import:smileyhappy:

 i need thiis lisp ,so plse reply send me my mail ,what iam do,



thanking you sir




Posts: 4
Registered: ‎09-17-2012
Message 23 of 28 (1,165 Views)

Re: Batch convert DGN to DWG

09-17-2012 10:21 AM in reply to: huaer605

This one work but is not exact a better program is needed.

Distinguished Contributor
Posts: 160
Registered: ‎01-29-2007
Message 24 of 28 (1,110 Views)

Re: Batch convert DGN to DWG

10-08-2012 01:46 AM in reply to: OzzNick

I've managed to batch convert multiple DGN files using 3rd party software.


After, I've written my lisp


(command "-mapimport" "DGN_V7_V8" nn3 "Y" "c:\\hatch.ipf" "I" "yes" "")


and tested it on one DGN

i've bought and installed this:

and applyed my lisp on bunch of empty DWG files named as DGN files so when using DWGNAME variable i managed to import dgn...

New Member
Posts: 1
Registered: ‎04-03-2013
Message 25 of 28 (853 Views)

Re: Batch convert DGN to DWG

04-03-2013 11:54 AM in reply to: mmoolhuysen

I updated the paths for tx1, tx2 and tx3. I left tx4 as "default". When I tried running the lsp, I got the error msg:

Command: DGNI

; error: bad argument type: FILE nil


What am I doing wrong?


New Member
Posts: 2
Registered: ‎01-03-2013
Message 26 of 28 (580 Views)

Re: Batch convert DGN to DWG

09-10-2013 03:40 PM in reply to: arulanand12

Thanks for the lisp it is very useful



Posts: 5
Registered: ‎02-09-2014
Message 27 of 28 (296 Views)

Re: Batch convert DGN to DWG

02-09-2014 01:52 AM in reply to: arulanand12


there is a nice tool for this :

New Member
Posts: 1
Registered: ‎07-08-2014
Message 28 of 28 (60 Views)

Re: Batch convert DGN to DWG

07-08-2014 12:34 AM in reply to: lgabriel

Dear Sir, I found your message dated 27/11/2014 but I don't know how to contact you and send the dgn file to you?! Pl help! Thx!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community