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 / 535
534  |  536
Subject: 
Small search program for LDRAW parts
Newsgroups: 
lugnet.cad
Date: 
Tue, 19 Jan 1999 22:14:56 GMT
Viewed: 
953 times
  
Hi all!

I have made a small program, to help me search through the LDRAW parts. It
scans the PARTS directory, and collects all the description lines (first
line) to a private data file (A scan is only needed when the parts have been
updated).

Then I can enter one or more words to search for, in the combined text (.dat
file name + description) and immediately see all the matching lines (The
order of the search words is irrelevant).

I can for example search for 'roof glass', and immediately see the result:

  2348B.DAT  Car Roof  4 x 4 Sunroof Glass with Ridges
  2348A.DAT  Car Roof  4 x 4 Sunroof Glass with Ridges
  4448.DAT   Window    4 x 4 x 3 Roof Glass

The search is incremental (as soon as You write a letter, You only see those
lines that match), and is (at least on my machine) instantaneous.

If You are interested to try it, there is a ZIP file (170 kB) available at:
  http://user.tninet.se/~hbh828t/ldlist.zip


Happy LDRAWing,
Anders Isaksson, Sweden
BlockCAD:  http://user.tninet.se/~hbh828t/proglego.htm
Gallery:   http://user.tninet.se/~hbh828t/gallery.htm



Message has 5 Replies:
  Re: Small search program for LDRAW parts
 
(...) Nifty little program, Anders! Thanks, this should come in handy. :-) -- Terry K -- Off to add this as "Tool" to LDAO (26 years ago, 20-Jan-99, to lugnet.cad)
  Re: Small search program for LDRAW parts
 
Cool. Now I don't have to add this to LDAO. :) One question - why didn't you use parts.lst as the source of descriptions? Steve (DOS-only part search: FIND /i "roof glass" c:\ldraw\parts.lst) (...) (26 years ago, 20-Jan-99, to lugnet.cad)
  Re: Small search program for LDRAW parts
 
Two things: 1. When I start typing, the entire list disappears, and doesn't come back. 2. (Minor) To get the path to LDraw, use the LDRAWDIR environment variable, or look in ldraw.ini, section [LDraw], key BaseDirectory. Steve (...) (26 years ago, 20-Jan-99, to lugnet.cad)
  Re: Small search program for LDRAW parts - version 3.0
 
I wrote ... (...) Ok, I have updated the program a little: I incorporated the drawing engine from Paul Gyuguis LDlite 0.3, which I had translated to Delphi Pascal earlier, so now there is a piece preview too. The environment variable LDRAWDIR is now (...) (26 years ago, 22-Jan-99, to lugnet.cad)
  Re: Small search program for LDRAW parts
 
Hi Anders! I have been using ldlist quite a bit lately, and had few suggestions (hopefully new ones): It would be nice if the program remembered its last state when starting. I like to use it full screen, with 2x magnification, and it sure would be (...) (26 years ago, 11-Feb-99, to lugnet.cad)

33 Messages in This Thread:












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

Custom Search

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