// Autodesk.AutoCAD.Customization.CustomizationHostServices
public string FindFile(string fileName)
{
if (string.IsNullOrEmpty(fileName))
{
return null;
}
string text = null;
try
{
if (HostApplicationServices.Current != null)
{
text = HostApplicationServices.Current.FindFile(fileName, null, FindFileHint.Default);
}
}
catch (Autodesk.AutoCAD.Runtime.Exception)
{
}
finally
{
if (text == null && !Path.IsPathRooted(fileName))
{
string text2 = Path.Combine(Utils.IconFilePath(), fileName);
if (File.Exists(text2))
{
text = text2;
}
}
}
return text;
}