dos_dwgpreview

Discussion in 'AutoCAD' started by Marcel Janmaat, Feb 4, 2005.

  1. I'm looking for a way to be able to select a drawing from a list of drawings
    starting with STH-*, and being able to preview these drawings.

    I thought the command below could be used;
    (dos_dwgpreview "Select a file!" (strcat H_cadprg "bib\\STH-*.dwg") ) But
    this does not work.
    But it cannot filter the STH-*.dwg's

    Has anybody got an idea how this can be accomplished?

    M
     
    Marcel Janmaat, Feb 4, 2005
    #1
  2. Marcel Janmaat

    James Buzbee Guest

    I can't remember but I think doslib has a form for displaying a list of
    strings - if so you need to provide a list of drawing names that match STH-*
    to that form for selection and then call dos_dwgpreview on the exact file.
    Look into the function VL-DIRECTORY-FILES for getting a list of filenames
    and then using WCMATCH or VL-STRING-SEARCH to sort for the wildcard.

    jb

    P.S. post some code, we'll help.
     
    James Buzbee, Feb 4, 2005
    #2
  3. Thanks!

    I've got it working!!!

    Just needed the VL-DIRECTORY-FILES funtion.

    M
     
    Marcel Janmaat, Feb 4, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
Loading...