+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Full Member kArThIcK hAcKeR's Avatar
    Computer Details
    kArThIcK hAcKeR's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    HP Compaq LE1911
    CPU:
    Intel Xeon
    RAM:
    8 GB
    Graphics:
    nvidia
    Discipline
    Mechanical
    kArThIcK hAcKeR's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Mechanical
    Details
    Design Engineer In L&T Ship-building
    Using
    AutoCAD 2014
    Join Date
    Jul 2013
    Location
    Chennai, India
    Posts
    53

    AutoCAD Mass Convert DWG To DXF (Mas DWG Convert By Using Script Writer))

    Registered forum members do not see this ad.

    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,
    Last edited by kArThIcK hAcKeR; 5th May 2014 at 08:45 am.
    Don't Hesitate !!!

  2. #2
    Senior Member
    Computer Details
    pmxcad's Computer Details
    Operating System:
    win 10
    Computer:
    HP Z420
    CPU:
    xenon
    RAM:
    32G
    Monitor:
    2x
    Discipline
    Electrical
    pmxcad's Discipline Details
    Occupation
    CAD designer in safety
    Discipline
    Electrical
    Details
    Safety (fire,access control, cctv, intercom, evacuation, fire panels)
    Using
    AutoCAD 2014
    Join Date
    Apr 2011
    Location
    Netherlands
    Posts
    224

    Default

    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

  3. #3
    Forum Newbie
    Discipline
    Manufacture
    Using
    AutoCAD 2010
    Join Date
    Mar 2017
    Posts
    1

    Default

    Excellent job buddy

    Got me out of a fix, may thanks.

    What was it created in/with?

  4. #4
    Forum Newbie
    Discipline
    P&ID
    Using
    AutoCAD 2014
    Join Date
    Jan 2017
    Posts
    8

    Default

    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).
    Attachment 48653
    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: Attachment 48630

    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]

  5. #5
    Forum Newbie
    Discipline
    Architectural
    Using
    AutoCAD 2018
    Join Date
    Oct 2017
    Posts
    1

    Default Thanks

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

  6. #6
    Forum Newbie
    Discipline
    Mechanical
    Using
    AutoCAD 2017
    Join Date
    Mar 2018
    Posts
    4

    Default

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

  7. #7
    Full Member kArThIcK hAcKeR's Avatar
    Computer Details
    kArThIcK hAcKeR's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    HP Compaq LE1911
    CPU:
    Intel Xeon
    RAM:
    8 GB
    Graphics:
    nvidia
    Discipline
    Mechanical
    kArThIcK hAcKeR's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Mechanical
    Details
    Design Engineer In L&T Ship-building
    Using
    AutoCAD 2014
    Join Date
    Jul 2013
    Location
    Chennai, India
    Posts
    53

    Default

    Quote Originally Posted by iridium View Post
    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?
    Don't Hesitate !!!

  8. #8
    Forum Newbie
    Discipline
    Mechanical
    Using
    AutoCAD 2017
    Join Date
    Mar 2018
    Posts
    4

    Default

    Quote Originally Posted by kArThIcK hAcKeR View Post
    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!
    Attached Files

  9. #9
    Quantum Mechanic
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,411

    Default

    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

    Code:
    _.OPEN "D:\\123\\200.239_47.dwg" mspace (command "_.dxfout "" "16" "_.regen" "_.close" "_Y")
    or
    _.OPEN "D:\\123\\200.240_16.dwg" mspace (TODXF)
    A man who never made mistakes never made anything

  10. #10
    Full Member kArThIcK hAcKeR's Avatar
    Computer Details
    kArThIcK hAcKeR's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    HP Compaq LE1911
    CPU:
    Intel Xeon
    RAM:
    8 GB
    Graphics:
    nvidia
    Discipline
    Mechanical
    kArThIcK hAcKeR's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Mechanical
    Details
    Design Engineer In L&T Ship-building
    Using
    AutoCAD 2014
    Join Date
    Jul 2013
    Location
    Chennai, India
    Posts
    53

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by iridium View Post
    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..
    Don't Hesitate !!!

Similar Threads

  1. How can I convert dxf to dwg in batch??
    By Han_BFY in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 7th Apr 2016, 03:48 am
  2. Mass convert dwg to dxf
    By kArThIcK hAcKeR in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 3rd May 2014, 11:23 am
  3. Batch convert idw or dwg's to pdf's
    By andar424 in forum Autodesk Inventor
    Replies: 5
    Last Post: 27th Apr 2013, 04:32 am
  4. Batch Convert DWG to RFA
    By Trevit in forum Revit General
    Replies: 4
    Last Post: 25th Jun 2012, 10:44 pm
  5. Mass convert 2006 dwg's to 2000 format.
    By HoustonPhotog in forum AutoCAD Drawing Management & Output
    Replies: 1
    Last Post: 21st Apr 2006, 02:45 pm

Tags for this Thread

Bookmarks

Posting Permissions

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