Select folder containing dxf and save as dwg

Select folder containing dxf and save as dwg

blandb
Mentor Mentor
2,260 Views
20 Replies
Message 1 of 21

Select folder containing dxf and save as dwg

blandb
Mentor
Mentor

I have a company that has folders of dxf files, and they want me to open each dxf and save as dwg. I have the save options set to 2000 format, so I just open all the dxf's in the folder and then do a Zoom Extents > Save > Close....rinse and repeat for the remainder of the drawings open.

 

Is there a lisp routine that can be done to accomplish this? Select a folder, save the dxf's as the same name just in a dwg format into the same folder the dxf files are?

 

Thanks in advance

Autodesk Certified Professional
0 Likes
2,261 Views
20 Replies
Replies (20)
Message 2 of 21

paullimapa
Mentor
Mentor

check out the solutions in this thread:

https://www.cadtutor.net/forum/topic/78909-batch-convert-dxf-to-dwg/


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 21

ec-cad
Collaborator
Collaborator

Paulli,

Went to the link below: - cadtutor.net...

Got a screen from Microsoft about a Trojan ?

What's up with that ?

 

ECCAD

 

0 Likes
Message 4 of 21

pendean
Community Legend
Community Legend

@ec-cad wrote:

Paulli,

Went to the link below: - cadtutor.net...

Got a screen from Microsoft about a Trojan ?

What's up with that ?

 

ECCAD

 


Nothing like that here is any of my webbrowsers to that link or any other CADTUTOR page

https://www.cadtutor.net/forum/topic/78909-batch-convert-dxf-to-dwg/ 

pendean_0-1712785696527.png

 

0 Likes
Message 5 of 21

ec-cad
Collaborator
Collaborator

Blandb,

You may want to try this one. Open a junk file, and appload. Pick the folder that contains the DXF files. Seems to work for me. Hit escape / quit when the process is done.

Cheers

ECCAD

 

0 Likes
Message 6 of 21

ec-cad
Collaborator
Collaborator

Hmmm,

That's not the front end screen I saw, had a single dialog box, with "Continue".

Probably a Chrome issue locally. I'll see if I can duplicate it.

Thanks,

Bob

 

0 Likes
Message 7 of 21

ec-cad
Collaborator
Collaborator

Yes, is OK now. I just went there. May be an issue with my local machine.

My appologies.

Bob

 

0 Likes
Message 8 of 21

blandb
Mentor
Mentor

I didn't have any issues going to the site, but after scanning through and clicking around, I found something is the appstore: https://apps.autodesk.com/ACD/en/Detail/Index?id=3434696327413675915 

Has anyone tried this?

Autodesk Certified Professional
0 Likes
Message 9 of 21

paullimapa
Mentor
Mentor

I've not tried this but looks promising if you're into exploring/installing new apps.

The only caveat seems to be this:

paullimapa_0-1712856016023.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 10 of 21

blandb
Mentor
Mentor

@ec-cad 

 

Thanks, I'll look into it.

Autodesk Certified Professional
0 Likes
Message 11 of 21

blandb
Mentor
Mentor

@paullimapa 

That is fine with me lol, I'm generating these out of Inventor.

Autodesk Certified Professional
0 Likes
Message 12 of 21

ec-cad
Collaborator
Collaborator

Blandb,

If your post implies that you 'need' a .scr file, rather than a .lsp file (maybe for AcadLT earlier version ?), then

attached probably won't work for you. If you can run Lisp, it will work fine.

ECCAD

 

0 Likes
Message 13 of 21

paullimapa
Mentor
Mentor

Since you're exploring, I copied, tested & modified the code from the link I provided in my original reply.

This does require Express Tools.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 14 of 21

blandb
Mentor
Mentor

Sorry, just getting time to come back to this. I tried the app store app and I couldn't get it to work with ACADM 2024. I had reached out to their support email and I have NEVER received a response back. Multiple emails and nothing. soo.... Just an FYI

Autodesk Certified Professional
0 Likes
Message 15 of 21

baksconstructor
Advocate
Advocate

 

No problem, use this -  AutoImportCAD 

 

 

imp.png

0 Likes
Message 16 of 21

paullimapa
Mentor
Mentor

I'm confused...I don't recall suggesting for you to try the app store app. Did you try the lisp code I attached in my previous reply?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 17 of 21

komondormrex
Mentor
Mentor

is it critical to zoom extents newly written dwg?

0 Likes
Message 18 of 21

blandb
Mentor
Mentor

I never said you did, but early on in the post, I had mentioned this app store program. I was just giving info back about how their customer service was non-existent.

Autodesk Certified Professional
0 Likes
Message 19 of 21

paullimapa
Mentor
Mentor

Got it.  But again try the lisp routine I posted and see if that works out for you. 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 20 of 21

blandb
Mentor
Mentor

Thanks, I will. I just have not had a chance to get to it as of yet.

Autodesk Certified Professional
0 Likes