Author Topic: Batch operations on multiple files  (Read 686 times)

0 Members and 1 Guest are viewing this topic.

Dave M

  • Newt
  • Posts: 175
Batch operations on multiple files
« on: February 26, 2020, 04:49:33 PM »
I have a plans that I plot in B/W.  I also plot these plans with certain layers that plot in color.  The way I have done it in the past was to create a script file that turned those layers on and then plotted the file and closed without saving.  I would use the Scriptpro program to do this on multiple files.  Sometimes I would set it up to run over night.


I am looking for a replacement to Scriptpro and was considering JTB Smartbatch as an alternative.  Does anyone have experience with this program?


Looking for suggestions


thanks
Civil 3D 2018 - Microstation SS4 - Windows 7 - Dropbox

notredave

  • Newt
  • Posts: 116
Re: Batch operations on multiple files
« Reply #1 on: March 10, 2020, 06:28:36 AM »
Lee Mac has a script writer program here: I use it all the time. It's wonderful.

http://www.lee-mac.com/scriptwriter.html

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9380
Re: Batch operations on multiple files
« Reply #2 on: March 10, 2020, 03:40:22 PM »
A very long time ago I wrote my self a "script running lisp" that essentially just runs all lisp, bat and exe files found in a certain directory. I created an AutoCAD profile (stripped down of all unnecessary stuff) that just loaded that lisp so when I wanted to run a script on a series of drawings I just opened that AutoCAD profile and choose the files I wanted to run the scripts on. Simple and effective.

Recently I was asked to write a program (C++) to dig into 1,000's of folders to find specific files. My program generated a script (lisp) for each file and then created a "master-run-all.bat" with those files to run a script on. The final tally of drawings was 5,000 and it took a weekend to process all those drawings, I was told. ...that was very specific and not generic at all but I offered up the concept just because it was sort of related.
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

Crank

  • Swamp Rat
  • Posts: 1444
Re: Batch operations on multiple files
« Reply #3 on: March 10, 2020, 03:48:21 PM »
If you're looking for speed, try the AcCoreConsole.

 Vault Professional 2018     /      Building Design Suite Ultimate 2017     /     AEC Collection 2018 + 2019 +2020

dgorsman

  • Water Moccasin
  • Posts: 2409
Re: Batch operations on multiple files
« Reply #4 on: March 11, 2020, 08:11:48 AM »
If you're looking for speed, try the AcCoreConsole.

One point I'll recommend, is running each drawing in its own core console session rather than processing all drawings in one session.  The latter is fine for small numbers of files but arbitrarily large collections will lead to errors as memory is not fully released.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

darktom

  • Mosquito
  • Posts: 1
Re: Batch operations on multiple files
« Reply #5 on: March 13, 2020, 04:37:42 AM »
If you're looking for speed, try the AcCoreConsole.
Also recommend

paulslondon

  • Mosquito
  • Posts: 1
Re: Batch operations on multiple files
« Reply #6 on: March 13, 2020, 05:32:21 AM »
Thanks for help