Jump to content

Recommended Posts

Posted (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).

Autocad Batch Script Creator.jpg

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 by kArThIcK hAcKeR
  • Like 3
  • 3 months later...
Posted

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

  • 2 years later...
Posted

Excellent job buddy 8)

 

Got me out of a fix, may thanks.:D

 

What was it created in/with?

Posted

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,

  • 7 months later...
Posted

I needed this to send some parts to our tube laser vendor. Worked perfectly. Thanks!

  • 4 months later...
Posted

Hello, I have 120 files in the folder, but it converts only the first file. Please help me

Posted
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?

Posted
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

Posted

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)

Posted
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..

Posted
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!

Posted

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 ...

Posted

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.

  • 1 month later...
Posted

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.

  • 3 years later...
Posted

I urgently need this program, please give me a working link!

Posted
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.

  • 1 year later...
Posted
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!!

  • 10 months later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...