<?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: IRealTimeLog.LogFile - How to get reference? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388517#M10327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've probably looked at every version of the Reference docs except for that one...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did create a New RealTimeFeedManager previously, just didn't seem intuitive on how to derive the IRealTimeLog from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The vb example you reference helps frame that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 11:20:17 GMT</pubDate>
    <dc:creator>KeithSandell1</dc:creator>
    <dc:date>2013-12-23T11:20:17Z</dc:date>
    <item>
      <title>IRealTimeLog.LogFile - How to get reference?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388515#M10325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to use VBA, on 9.2, to get the Log File Location for the GPS Toolbar "Log Setup" dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following code that programmatically fires off the "Log Setup" dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once closed I need to get the Log File. The IRealTimeLog Interface contains the property I need to access, "LogFile." The property is an implementation of IFeatureClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, any way I have tried to access IRealTimeLog.LogFile raises "Object variable or With block variable not set" or other various errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result of getting the Log File, either in an IFeatureClass implementation or location on disk, will be fed into existing code that adds the shapefile to the TOC and sets the symbology.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just need help getting a reference to the "Log File".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Private Sub UIButtonControl1_Click()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pCommandBarItem As ICommandItem
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pCommandBarItem = Application.Document.CommandBars.Find(ArcID.GPS_LogfileProperties)
&amp;nbsp;&amp;nbsp;&amp;nbsp; pCommandBarItem.Execute
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'What do I need to do below to get the reference?
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pRealTimeFeatureClass As IFeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pRealTimeLog As IRealTimeLog
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pRealTimeFeatureClass = pRealTimeLog.LogFile
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
End Sub
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Dec 2013 20:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388515#M10325</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2013-12-22T20:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: IRealTimeLog.LogFile - How to get reference?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388516#M10326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have never used this interface but I am willing to try to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked up the interface in Carto here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IRealTimeLog_Interface/001200000q07000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IRealTimeLog_Interface/001200000q07000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the bottom of the help article it states that the RealtimeFeedManager is one (actually the only) "CoClasses that implement IRealTimeLog":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/0012/001200000s86000000.htm"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/0012/001200000s86000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what you need is a way to get an instance of the RealtimeFeedManager.&amp;nbsp; Maybe try new?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I Googled on "realtimefeedmanager create" and got the following link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/dotnet/1e6fd533-2b08-4cd3-99cb-58f220d99819.htm"&gt;http://resources.esri.com/help/9.3/arcgisdesktop/dotnet/1e6fd533-2b08-4cd3-99cb-58f220d99819.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is an example in C# but it appears to simply use new.&amp;nbsp; Suggest that you look at this code and emulate this behavior in VBA.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 10:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388516#M10326</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-23T10:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: IRealTimeLog.LogFile - How to get reference?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388517#M10327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've probably looked at every version of the Reference docs except for that one...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did create a New RealTimeFeedManager previously, just didn't seem intuitive on how to derive the IRealTimeLog from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The vb example you reference helps frame that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 11:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irealtimelog-logfile-how-to-get-reference/m-p/388517#M10327</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2013-12-23T11:20:17Z</dc:date>
    </item>
  </channel>
</rss>

