MBSupport Posted November 20, 2013 Posted November 20, 2013 You really should look at a batch program they are inexpensive and can make the cost back in one job, at least then all you have to worry about is the actual script to make the changes. Our program Multi-Batch can do this and a lot more. It gives you the power of AutoCAD's full version utility ScriptPro in a much easier to understand and use package. There are other products on the market as well so check them out, the time saving can be significant. Patrick http://www.multi-batch.com/ For your entire batch processing needs Quote
CHBIVSSOE Posted January 7, 2016 Posted January 7, 2016 What would be the best way to do the following? I have a folder with CAD files. I need to run a program, lisp, something that will take all those cad files and append a layer modifier, and change the Lineweight. I am completely clueless when it comes to this kind of hardcore programming. Any help, and I would be eternally grateful! -Charles Quote
BIGAL Posted January 8, 2016 Posted January 8, 2016 A simple script may do it for you, more info required to write the laychanger.lsp Creating you initial text file is easy go to in Windows Start CMD a window opens, this is an example commands in bold E: my network drive cd\project\56\mechanical ths is your dwg directory dir *.dwg >dirlst.scr /b this will make a list of your dwgs as a script file open in Word or Notepad and edit like below my preference is word replace ^p ^pOpen open dwg1 (load "laychanger") close Y open dwg2 (load "laychanger") close Y open dwg3 (load "laychanger") close Y Quote
CHBIVSSOE Posted January 8, 2016 Posted January 8, 2016 this is more exact to what I need: I need to point Autocad at a specified folder, and have it systematically open .dwg files and have it preform the following on each: unlock all layers Append "-EXST" to every layer name Change every layer Lineweight to .25 lock all layers Zoom Extents Purge Save Exit Quote
Fcernst Posted April 11, 2023 Posted April 11, 2023 Hello All, I am trying Tuns method on multiple DWG files located in my C:\Users\fcern\Downloads\1SCRIPTS\ folder but I keep getting a message the specified fine can not be found then it opens the correct folder (1SCRIPTS) in AutoCAD and you can see all the drawings. Can someone tell where I am going wrong? BAT file and script file code below: FOR %%V IN (C:\Users\fcern\Downloads\1SCRIPTS\*.DWG) DO start "T" /w "C:\Program Files\Autodesk\AutoCAD 2024\acad.exe" %%V /b "C:\Users\fcern\Downloads\1SCRIPTS\CHANGE PDFSHX VARIABLE2.scr" (setvar "PDFSHX" 0) SAVE QUIT Thanks! 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.