Author Topic: Help with file filtering  (Read 903 times)

0 Members and 1 Guest are viewing this topic.

Eloquintet

  • Gator
  • Posts: 3206
Help with file filtering
« on: January 04, 2007, 12:15:16 PM »
We have a routine which we use to update and attribute in many drawings but it will only do so in .dwg files but we now need to include .dwt as well to update our templates. I found the bit of code that filters the file type but how do I specify .dwg and .dwt? I will play around with it myself but any help will be appreciated. Thanks

myOpen.Filter = "Drawings (*.dwg)|*.dwg" 'Set a filter
Dan

AutoCAD Architecture 2015

Chuck Gabriel

  • Guest
Re: Help with file filtering
« Reply #1 on: January 04, 2007, 12:28:10 PM »
Code: [Select]
    myOpen.Filter = "AutoCAD Drawing files (*.dwg)|*.dwg|" & _
                          "AutoCAD Drawing Interchange files (*.dxf)|*.dxf"
    myOpen.DefaultExt = "dwg"

Eloquintet

  • Gator
  • Posts: 3206
Re: Help with file filtering
« Reply #2 on: January 04, 2007, 12:43:51 PM »
thanks chuck works great you're the best
Dan

AutoCAD Architecture 2015