kArThIcK hAcKeR Posted May 3, 2014 Posted May 3, 2014 (edited) Hi Guys, I Wanted To Mass Convert Some DWGs To DXFs, So, I looked Around and found some commercial softwares and also some lisp routine, but they didn't workout as i expected so i made a software (to interpret scripts). it works fine in converion of dxfs, so i thought this software might be usefull to some who want to mass convert dxfs, here is the software: AutoCAD Script Writer.zip This Software doesn't Require Installation, (It Runs Directly) ::REQUIREMENTS:: 1. AutoCAD which supports LISP routines (eG; full versions of AutoCAD 2010, But not AutoCAD LT Versions) ::Usage:: 1. In The "Location Of Files To Be Processed" Box, Paste The Location Where U have ur dwg files. (Default value is "D:\SomeFolder"). Dont Give A Root Location Such As "D:\" or "C:\" etc; 2. In The "Command" Box, The Default Code Is Written For DXF Conversion, U can modify and write ur own Macros here, (If U know Acad Scripting Language) 3. Pressing the "Create Script" Button will create a "Script.scr" file at the location of the dwg files 4. Now Open AutoCAD, Now Press [Control]+[N] In AutoCAD, A New Window will be opened 5. Now All U Have To Do Is Drag The "Script.scr", into the AutoCAD's Canvas (which is a blank black window usually) 6. And thats it, autocad will start converting the DWGs to DXFs Thanks To Lee-Mac, dbroada & Bill-Tillman for giving me the answer and idea to my previous post, Edited May 5, 2014 by kArThIcK hAcKeR 3 Quote
pmxcad Posted August 6, 2014 Posted August 6, 2014 You can use a script en use Scriptpro to run multiple drawings. It places the DXF in the drawing map. PmxCAD Script: FILEDIA 0 _SAVEAS DXF 16 FILEDIA 1 Quote
The GettinBetter Posted March 9, 2017 Posted March 9, 2017 Excellent job buddy Got me out of a fix, may thanks. What was it created in/with? Quote
naren Posted March 13, 2017 Posted March 13, 2017 hi Karthik, could you help me write code to convert DWG to PDF as I dont know how to write code I Wanted To Mass Convert Some DWGs To DXFs, So, I looked Around and found some commercial softwares and also some lisp routine, but they didn't workout as i expected so i made a software (to interpret scripts). [ATTACH]48653[/ATTACH] it works fine in converion of dxfs, so i thought this software might be usefull to some who want to mass convert dxfs, here is the software: [ATTACH]48630[/ATTACH] This Software doesn't Require Installation, (It Runs Directly) ::REQUIREMENTS:: 1. AutoCAD which supports LISP routines (eG; full versions of AutoCAD 2010, But not AutoCAD LT Versions) ::Usage:: 1. In The "Location Of Files To Be Processed" Box, Paste The Location Where U have ur dwg files. (Default value is "D:\SomeFolder"). Dont Give A Root Location Such As "D:\" or "C:\" etc; 2. In The "Command" Box, The Default Code Is Written For DXF Conversion, U can modify and write ur own Macros here, (If U know Acad Scripting Language) 3. Pressing the "Create Script" Button will create a "Script.scr" file at the location of the dwg files 4. Now Open AutoCAD, Now Press [Control]+[N] In AutoCAD, A New Window will be opened 5. Now All U Have To Do Is Drag The "Script.scr", into the AutoCAD's Canvas (which is a blank black window usually) 6. And thats it, autocad will start converting the DWGs to DXFs Thanks To Lee-Mac, dbroada & Bill-Tillman for giving me the answer and idea to my previous post, Quote
jedipadre Posted October 27, 2017 Posted October 27, 2017 I needed this to send some parts to our tube laser vendor. Worked perfectly. Thanks! Quote
iridium Posted March 15, 2018 Posted March 15, 2018 Hello, I have 120 files in the folder, but it converts only the first file. Please help me Quote
kArThIcK hAcKeR Posted March 17, 2018 Author Posted March 17, 2018 Hello, I have 120 files in the folder, but it converts only the first file. Please help me Oooh i'm back after a long time (o_O) Can you post the return script that you had received (Script.scr), so that i can see what the issue is? Quote
iridium Posted March 23, 2018 Posted March 23, 2018 Oooh i'm back after a long time (o_O) Can you post the return script that you had received (Script.scr), so that i can see what the issue is? Hi! Here is the script. Thanks for help! ScriptX.scr Quote
BIGAL Posted March 23, 2018 Posted March 23, 2018 The obvious you dont need to delcare as a defun just run command or load the defun once into acaddoc.lsp then just call the defun (dxfout) A couple of suggestions in scripts the / \ can make the difference Check make a test directory the 200.239 to 200_239 the . may be the problem _.OPEN "D:\\123\\200.239_47.dwg" mspace (command "_.dxfout "" "16" "_.regen" "_.close" "_Y") or _.OPEN "D:\\123\\200.240_16.dwg" mspace (TODXF) Quote
kArThIcK hAcKeR Posted March 25, 2018 Author Posted March 25, 2018 Hi! Here is the script. Thanks for help! Hi iridium, as Bigal suggested in the post above the "." (dot) in the file name is what's causing the problem.. If you have a file mass file renamer (suggestion: "Bulk Rename Utility"), try renaming the files from 222.123 to 222_123. Let me know if it worked.. Quote
iridium Posted March 26, 2018 Posted March 26, 2018 Hi iridium, as Bigal suggested in the post above the "." (dot) in the file name is what's causing the problem..If you have a file mass file renamer (suggestion: "Bulk Rename Utility"), try renaming the files from 222.123 to 222_123. Let me know if it worked.. I have replaced the "." with "_" in the file names. The same problem! Quote
kArThIcK hAcKeR Posted March 26, 2018 Author Posted March 26, 2018 Iridium, Can you please pack a sample of your 10 files to a zip or rar and paste the link.. I'll extract and see if it's a problem with the dwg or the program execution ... Quote
iridium Posted March 27, 2018 Posted March 27, 2018 Hi kArThIcK hAcKeR, here are the files. DWG.rar Quote
kArThIcK hAcKeR Posted March 27, 2018 Author Posted March 27, 2018 Iridium, i just generated a script with the 10 samples you gave me, I was able to convert them to dxf without any error, please see attachment below.. DXF.zip Follow below steps, Try opening a new autocad window (a new process/close existing drawings and autocads), then in the Autocad's black canvas try dropping the script on to it.. let me know how it went. Quote
Eurodude Posted May 14, 2018 Posted May 14, 2018 I remember doing this years ago the other way round. DXF to DWG scripts always started with filedia 0 cmddia 0 then a file list with the saveas commands etc. Used similar scripts for uprevving large batches of drawings, saved lots of tedium. Quote
alexxxxx11 Posted June 2, 2021 Posted June 2, 2021 I urgently need this program, please give me a working link! Quote
Cad64 Posted June 2, 2021 Posted June 2, 2021 15 minutes ago, alexxxxx11 said: I urgently need this program, please give me a working link! I just tested the link in the first post and it's working fine. Quote
Larryot Posted December 15, 2022 Posted December 15, 2022 On 17/03/2018 at 04:08, kArThIcK hAcKeR said: Oooh i'm back after a long time (o_O) Can you post the return script that you had received (Script.scr), so that i can see what the issue is? Nearly 5 years on and your script is still saving necks and kicking ass. THANK YOU!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.