<?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: Obtaining INetworkSource from Edge EID - ArcObjects C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321639#M8371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IForwardStar has a Network property of type INetwork.&amp;nbsp; INetwork casts to IDataset.&amp;nbsp; IDataset has a Workspace property and from there you can get to any FeatureTable you want and Query.&amp;nbsp; INetElements on Network object can get you the class id associated to an EID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is, as soon as you go off to get the Feeder ID you have lost the performance gains of using the ForwardStar.&amp;nbsp; Caching what you need and going off in the end to get the feature information will perform better.&amp;nbsp; Also if you are using ArcFM, I would look into trying to use one of their traces, this will perform better and I think give easier access to Feeder ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Mar 2019 17:48:14 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2019-03-10T17:48:14Z</dc:date>
    <item>
      <title>Obtaining INetworkSource from Edge EID - ArcObjects C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321638#M8370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp; a&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IGeometricNetwork.htm"&gt;Geometric Network&lt;/A&gt;&amp;nbsp;of electric dataset and I'm working on a downstream trace addin using&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IForwardStar.htm"&gt;Forward Star&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While tracing, I need to obtain an extra attribute ("Feeder ID") from the source of my geometric network, which is not present in the network attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, I have the EID of the Edge, and its geometry, during the trace iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fStar.QueryAdjacentEdges(ref adjEdgeEIDS, ref adjRevOrientations, ref adjEdgeWeights);&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; adjEdgeCount; i++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int connectedEdgeEID = adjEdgeEIDS&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IGeometry&amp;nbsp;edgeGeom =(IGeometry) _geomNet.get_GeometryForEdgeEID(&lt;SPAN&gt;connectedEdgeEID&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Get source of Edge EID to get FeederID Attribute&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have researched a little and found out that this will be achieved through&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#INetworkSource.htm"&gt;INetworkSource&lt;/A&gt;.&lt;BR /&gt;I can obtain&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#INetworkElement_SourceID.htm"&gt;SourceID&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#INetworkElement_OID.htm"&gt;SourceOID&lt;/A&gt;&amp;nbsp;from the&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#INetworkElement.htm"&gt;INetworkElement&lt;/A&gt;&amp;nbsp;of that edge.&lt;BR /&gt;&lt;BR /&gt;What I am unable to figure out is that how to obtain the corresponding NetworkElement from the EID or Goemetry of the Edge I have.&lt;BR /&gt;&lt;BR /&gt;I hope I am going in the right direction. Any help would be appreciated.&lt;BR /&gt;Note: I do not have the Network Analyst Extension. I need to do it without needing the Network analyst extension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2019 04:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321638#M8370</guid>
      <dc:creator>Muhammad_TayyabMir</dc:creator>
      <dc:date>2019-03-10T04:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining INetworkSource from Edge EID - ArcObjects C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321639#M8371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IForwardStar has a Network property of type INetwork.&amp;nbsp; INetwork casts to IDataset.&amp;nbsp; IDataset has a Workspace property and from there you can get to any FeatureTable you want and Query.&amp;nbsp; INetElements on Network object can get you the class id associated to an EID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is, as soon as you go off to get the Feeder ID you have lost the performance gains of using the ForwardStar.&amp;nbsp; Caching what you need and going off in the end to get the feature information will perform better.&amp;nbsp; Also if you are using ArcFM, I would look into trying to use one of their traces, this will perform better and I think give easier access to Feeder ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2019 17:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321639#M8371</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-03-10T17:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining INetworkSource from Edge EID - ArcObjects C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321640#M8372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot Joe! this is exactly what I needed.&lt;BR /&gt;About using ArcFM, that really was my first approach. I spent 2 weeks understanding the documentation and doing it through&amp;nbsp;&lt;A href="http://resources.arcfmsolution.com/10.2.1a/DesktopSDK/topic11232.html"&gt;Downstream Trace&lt;/A&gt;&amp;nbsp;but I got stuck very bad. I asked a couple on questions on &lt;A href="http://www.gis.stackexchange.com"&gt;GIS Stack Exchange&lt;/A&gt;&amp;nbsp;which no one answered and I did not have a Schneider account to post on their forum. After two weeks I gave up and did it with Forward Star, since my deadline was reaching.&amp;nbsp;&lt;BR /&gt;Will surely go back to that method once I complete it for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2019 08:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/obtaining-inetworksource-from-edge-eid-arcobjects/m-p/321640#M8372</guid>
      <dc:creator>Muhammad_TayyabMir</dc:creator>
      <dc:date>2019-03-11T08:00:29Z</dc:date>
    </item>
  </channel>
</rss>

