TheSwamp

Code Red => VB(A) => Topic started by: ELOQUINTET on January 04, 2007, 12:15:16 PM

Title: Help with file filtering
Post by: ELOQUINTET 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
Title: Re: Help with file filtering
Post by: Chuck Gabriel 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"
Title: Re: Help with file filtering
Post by: ELOQUINTET on January 04, 2007, 12:43:51 PM
thanks chuck works great you're the best