+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Forum Newbie
    Using
    Architectural DT 2008
    Join Date
    Oct 2007
    Posts
    2

    Default filter in getfiled

    Registered forum members do not see this ad.

    Hi everyone,

    I'm looking for a way to get 'getfiled' to display only a filtered selection of a given folder, i.e. only 'AA06-*.dwg'...(with wildcards)

    I did find ways to filter the list after the 'getfiled' call, but I would like to filter before, in order to display only the files meeting the filter criteria... I'm looking into 'getfiled' because the dwg preview is needed...

    The ideal would be to be allowed something like this:
    (setq blk-ins (getfiled "Select Block" "c:\\folder\\AA06-*.dwg" "dwg" 8 ))

    Any ideas?

    Thanks in advance,

    Jocelyn

  2. #2
    Senior Member
    Using
    not applicable
    Join Date
    May 2007
    Posts
    126

    Default

    a stupid and dangerous solution:
    change extensions of files that do not meet your criteria to, let's say, "dwg1", before calling getfiled. and then restore.

  3. #3
    Super Member Raggi_Thor's Avatar
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Location
    Trondheim, NORWAY
    Posts
    718

    Default

    I think that is a possible solution.

    DOS_GETFILED in doslib from McNeel does have a filter function, but as far as I can se no preview.

    PHP Code:
      (getfiled "GETFILED" "c:/programfiler/AutoCAD 2008/support/" "dwg" 8)
      (
    dos_getfiled "DOS_GETFILED" "c:/programfiler/AutoCAD 2008/support/" "Files like '*ch*'|*ch*.dwg" 8
    Attached Images
    Mvh, Kvedja, Kind Regards,
    Ragnar Thor Mikkelsen
    http://www.DESIGNDATA.no/English.htm

  4. #4
    Super Member Raggi_Thor's Avatar
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Location
    Trondheim, NORWAY
    Posts
    718

    Default

    Registered forum members do not see this ad.

    I just got this from McNeel:
    Hi Ragnar,
    Check the DOSLib help file for the DOS_GETFILENAV function. It works like the AutoLISP GETFILED function, but will display a preview image for DWG files.

    Dale Fugier
    Robert McNeel & Associates
    Mvh, Kvedja, Kind Regards,
    Ragnar Thor Mikkelsen
    http://www.DESIGNDATA.no/English.htm

Similar Threads

  1. Filter...again
    By Tiger in forum AutoCAD General
    Replies: 6
    Last Post: 7th Aug 2007, 07:15 pm
  2. Filter by Area
    By spiva2146 in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 11th Jul 2007, 03:04 am
  3. Filter Question
    By dabsr in forum AutoCAD General
    Replies: 6
    Last Post: 2nd Jul 2007, 01:39 pm
  4. Replies: 0
    Last Post: 2nd Nov 2006, 11:51 pm

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