To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 3999
3998  |  4000
Subject: 
Re: Bulk processing
Newsgroups: 
lugnet.cad
Date: 
Sat, 17 Jun 2000 13:49:24 GMT
Viewed: 
2475 times
  
Steve,

This worked awesome. This is exactly what I needed. One last question though,
how do I add a command to automatically say yes everytime I am prompted for
the yes/no option for deleting files?

Thanks!

In lugnet.cad, Steve Bliss writes:
> In lugnet.cad, Jake McKee wrote:
> 
> > All,
> > 
> > I am trying to figure out the fastest way to create images of all the parts • in
> > the LDRAW part library in all the colors. Please help!
> > 
> > I have used the command line:
> > 
> > c:\ldraw\ldlite\ldlite 3001.dat -MS (plus whatever color)
> > 
> > But hand typing in this line 1000s of times would kill me! I have created a
> > batch file to run them, but I still have to type in a ton of text. Can anyone
> > help me?
> 
> Here's another approach:
> 
> Create a file whereever you've got ldlite.exe.  Call this file onepart.bat,
> and put the following commands in it:
> 
> erase c:\ldraw\bitmap\*.*
> start /wait ldlite %1 -MS -C%2
> move c:\ldraw\bitmap\*.* c:\ldraw\cat\%1-%2.bmp
> 
> Change 'c:\ldraw' to wherever you've got ldraw installed.  'c:\ldraw\cat'
> is just the name I chose for a directory to hold the output files.  Feel
> free to use a different name.
> 
> Next, create a file called allcolor.bat.  In this file, put the commands:
> 
> call onepart.bat %1 0
> call onepart.bat %1 1
> call onepart.bat %1 2
> call onepart.bat %1 4
> call onepart.bat %1 5
> call onepart.bat %1 7
> call onepart.bat %1 8
> call onepart.bat %1 14
> call onepart.bat %1 15
> 
> Notice that the numbers on the end of the line are color codes for LDraw.
> Repeat the command for all the colors you want to generate (see
> <http://www.ldraw.org/faq/> for a list of all the colors.
> 
> FINALLY, go to a DOS prompt.  CD to the ldlite directory.  Type this
> command.
> 
> FOR %f in (c:\ldraw\parts\*.dat) DO CALL allcolor.bat %f
> 
> Watch the results, or go to lunch.  Your choice.
> 
> BTW, each set of images in a single color are going to take about 80MB on
> your hard drive.  Be sure to have enough room to store all the results.
> 
> Steve



Message has 1 Reply:
  Re: Bulk processing
 
(...) To be more specific than my e-mail response, change the command: erase c:\ldraw\bitmap\*.* to echo Y | erase c:\ldraw\bitmap\*.* in the onepart.bat file. That should resolve the problem. Steve (26 years ago, 19-Jun-00, to lugnet.cad)

Message is in Reply To:
  Re: Bulk processing
 
(...) Here's another approach: Create a file whereever you've got ldlite.exe. Call this file onepart.bat, and put the following commands in it: erase c:\ldraw\bitmap\*.* start /wait ldlite %1 -MS -C%2 move c:\ldraw\bitmap\*.* c:\ldraw\cat\%1-%2.bmp (...) (26 years ago, 15-Jun-00, to lugnet.cad)

14 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR