<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: findfile in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334398#M84986</link>
    <description>Are any of these bugs being fixed and released in service packs for 2005?&lt;BR /&gt;
&lt;BR /&gt;
Tim Riley&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message &lt;BR /&gt;
news:4854861@discussion.autodesk.com...&lt;BR /&gt;
Try this:&lt;BR /&gt;
HostApplicatonServices.Current.FindFile(...)&lt;BR /&gt;
&lt;BR /&gt;
Note that FindFile has a bug on R2005 that renders it pretty much unusable.&lt;BR /&gt;
This bug was fixed in R2006.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;MARKGARDINER&gt; wrote in message news:4854062@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to use the .net findfile but I am getting the eror&lt;BR /&gt;
CS0120: An object refernce is required for the nonstatic field, methor or&lt;BR /&gt;
property&lt;BR /&gt;
&lt;BR /&gt;
Database db =  HostApplicationServices.WorkingDatabase;&lt;BR /&gt;
FindFileHint hnt = 0;&lt;BR /&gt;
System.String fileName= "acaddoc.lsp";&lt;BR /&gt;
string retpath = HostApplicationServices.FindFile(fileName, db , hnt);&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Mark&lt;/MARKGARDINER&gt;&lt;/NOT_PROVIDED&gt;</description>
    <pubDate>Tue, 24 May 2005 19:39:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-24T19:39:58Z</dc:date>
    <item>
      <title>findfile</title>
      <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334395#M84983</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to use the .net findfile but I am getting the eror &lt;BR /&gt;
CS0120: An object refernce is required for the nonstatic field, methor or property&lt;BR /&gt;
&lt;BR /&gt;
Database db =  HostApplicationServices.WorkingDatabase;&lt;BR /&gt;
FindFileHint hnt = 0;&lt;BR /&gt;
System.String fileName= "acaddoc.lsp";&lt;BR /&gt;
string retpath = HostApplicationServices.FindFile(fileName, db , hnt);&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Mark</description>
      <pubDate>Tue, 24 May 2005 02:06:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334395#M84983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T02:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: findfile</title>
      <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334396#M84984</link>
      <description>using System.IO&lt;BR /&gt;
&lt;BR /&gt;
public bool GetBlocks() &lt;BR /&gt;
{ &lt;BR /&gt;
 try { &lt;BR /&gt;
   if (m_sBlkPath != vbNullString) { &lt;BR /&gt;
     Directory oDir; &lt;BR /&gt;
     File oFile; &lt;BR /&gt;
     oDir.GetDirectories(m_sBlkPath); &lt;BR /&gt;
     string[][0] cFiles; &lt;BR /&gt;
     string sFile; &lt;BR /&gt;
     cFiles = oDir.GetFiles(m_sBlkPath, "*.dwg"); &lt;BR /&gt;
     if (cFiles.Length &amp;gt; 0) { &lt;BR /&gt;
       string sFileName; &lt;BR /&gt;
       foreach (int sFile in cFiles) { &lt;BR /&gt;
         console.writeline Path.GetFileNameWithoutExtension(sFile); &lt;BR /&gt;
       } &lt;BR /&gt;
     } &lt;BR /&gt;
   } &lt;BR /&gt;
   return true; &lt;BR /&gt;
 } catch (Exception ex) { &lt;BR /&gt;
   return false; &lt;BR /&gt;
 } &lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- Mike&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
___________________________&lt;BR /&gt;
the trick is to realize that there is no spoon...</description>
      <pubDate>Tue, 24 May 2005 04:01:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334396#M84984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T04:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: findfile</title>
      <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334397#M84985</link>
      <description>Try this:&lt;BR /&gt;
HostApplicatonServices.Current.FindFile(...)&lt;BR /&gt;
&lt;BR /&gt;
Note that FindFile has a bug on R2005 that renders it pretty much unusable. &lt;BR /&gt;
This bug was fixed in R2006.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;MARKGARDINER&gt; wrote in message news:4854062@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to use the .net findfile but I am getting the eror&lt;BR /&gt;
CS0120: An object refernce is required for the nonstatic field, methor or &lt;BR /&gt;
property&lt;BR /&gt;
&lt;BR /&gt;
Database db =  HostApplicationServices.WorkingDatabase;&lt;BR /&gt;
FindFileHint hnt = 0;&lt;BR /&gt;
System.String fileName= "acaddoc.lsp";&lt;BR /&gt;
string retpath = HostApplicationServices.FindFile(fileName, db , hnt);&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Mark&lt;/MARKGARDINER&gt;</description>
      <pubDate>Tue, 24 May 2005 17:44:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334397#M84985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T17:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: findfile</title>
      <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334398#M84986</link>
      <description>Are any of these bugs being fixed and released in service packs for 2005?&lt;BR /&gt;
&lt;BR /&gt;
Tim Riley&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message &lt;BR /&gt;
news:4854861@discussion.autodesk.com...&lt;BR /&gt;
Try this:&lt;BR /&gt;
HostApplicatonServices.Current.FindFile(...)&lt;BR /&gt;
&lt;BR /&gt;
Note that FindFile has a bug on R2005 that renders it pretty much unusable.&lt;BR /&gt;
This bug was fixed in R2006.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;MARKGARDINER&gt; wrote in message news:4854062@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to use the .net findfile but I am getting the eror&lt;BR /&gt;
CS0120: An object refernce is required for the nonstatic field, methor or&lt;BR /&gt;
property&lt;BR /&gt;
&lt;BR /&gt;
Database db =  HostApplicationServices.WorkingDatabase;&lt;BR /&gt;
FindFileHint hnt = 0;&lt;BR /&gt;
System.String fileName= "acaddoc.lsp";&lt;BR /&gt;
string retpath = HostApplicationServices.FindFile(fileName, db , hnt);&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Mark&lt;/MARKGARDINER&gt;&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Tue, 24 May 2005 19:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334398#M84986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T19:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: findfile</title>
      <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334399#M84987</link>
      <description>Not sure but my guess would be no since 2k6 exposes more to managed and is&lt;BR /&gt;
not a simple "patch" onto the exposure of 2k5. Also since this is a&lt;BR /&gt;
progression forward to full managed exposure, I doubt they'd go back and&lt;BR /&gt;
fix something.&lt;BR /&gt;
&lt;BR /&gt;
-- Mike&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
___________________________&lt;BR /&gt;
the trick is to realize that there is no spoon...</description>
      <pubDate>Tue, 24 May 2005 20:18:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334399#M84987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T20:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: findfile</title>
      <link>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334400#M84988</link>
      <description>No, there's no 2005 sp or hotfix for this. You can work around it by calling &lt;BR /&gt;
the underlying C++ API directly.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
"Tim Riley" &lt;RILTIM______AT_____GMAIL.COM&gt; wrote in message &lt;BR /&gt;
news:4855036@discussion.autodesk.com...&lt;BR /&gt;
Are any of these bugs being fixed and released in service packs for 2005?&lt;BR /&gt;
&lt;BR /&gt;
Tim Riley&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message&lt;BR /&gt;
news:4854861@discussion.autodesk.com...&lt;BR /&gt;
Try this:&lt;BR /&gt;
HostApplicatonServices.Current.FindFile(...)&lt;BR /&gt;
&lt;BR /&gt;
Note that FindFile has a bug on R2005 that renders it pretty much unusable.&lt;BR /&gt;
This bug was fixed in R2006.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;MARKGARDINER&gt; wrote in message news:4854062@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to use the .net findfile but I am getting the eror&lt;BR /&gt;
CS0120: An object refernce is required for the nonstatic field, methor or&lt;BR /&gt;
property&lt;BR /&gt;
&lt;BR /&gt;
Database db =  HostApplicationServices.WorkingDatabase;&lt;BR /&gt;
FindFileHint hnt = 0;&lt;BR /&gt;
System.String fileName= "acaddoc.lsp";&lt;BR /&gt;
string retpath = HostApplicationServices.FindFile(fileName, db , hnt);&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Mark&lt;/MARKGARDINER&gt;&lt;/NOT_PROVIDED&gt;&lt;/RILTIM______AT_____GMAIL.COM&gt;</description>
      <pubDate>Tue, 24 May 2005 21:55:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/findfile/m-p/1334400#M84988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T21:55:55Z</dc:date>
    </item>
  </channel>
</rss>

