.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

find a file in Support File Search Path

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
578 Views, 1 Reply

find a file in Support File Search Path

Anonymous
Not applicable
Hi,
i'm inserting a dwg file as block to my drawing, but although the file is in a location, that's listed in Support File Search Path, this code throws exception eFileNotFound

sourceDb.ReadDwgFile(dwgName, FileShare.Read, True, "")

how can i locate a file just by his name, when i know, that it's located in Support File Search Path?
0 Likes

find a file in Support File Search Path

Hi,
i'm inserting a dwg file as block to my drawing, but although the file is in a location, that's listed in Support File Search Path, this code throws exception eFileNotFound

sourceDb.ReadDwgFile(dwgName, FileShare.Read, True, "")

how can i locate a file just by his name, when i know, that it's located in Support File Search Path?
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Accepted solution
Dim dwgPath As String = HostApplicationServices.Current.FindFile(dwgName, db, FindFileHint.Default)

thanks to Kean Walmsley and his great blog
0 Likes

Dim dwgPath As String = HostApplicationServices.Current.FindFile(dwgName, db, FindFileHint.Default)

thanks to Kean Walmsley and his great blog

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report