<?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: Getting properties from a custom evaluator in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304182#M2917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reaction, but I think there's a misunderstanding. We can SET the properties. The issue is when (after closing the network dataset properties and opening it again) we want to GET the properties we did set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On ArcObjects level: we can set the data property on INetworkEvaluatorSetup, but when we try to get the data property, it returns always Null. Although when solving routes we notice that we did set our properties. (&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00250000058z000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00250000058z000000"&gt;ArcObjects INetworkEvaluatorSetup&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that we can never check if somebody did configure the custom evaluator correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 07:33:39 GMT</pubDate>
    <dc:creator>ThibautDelaere1</dc:creator>
    <dc:date>2015-04-14T07:33:39Z</dc:date>
    <item>
      <title>Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304178#M2913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We created a custom evaluator for Network Analyst in ArcGIS 10.3 based upon the Departure Time Transit Evaluator: &lt;A href="http://www.arcgis.com/home/item.html?id=72ef24542857413c8981f2e196f1bb13" title="http://www.arcgis.com/home/item.html?id=72ef24542857413c8981f2e196f1bb13"&gt;http://www.arcgis.com/home/item.html?id=72ef24542857413c8981f2e196f1bb13&lt;/A&gt; &lt;/P&gt;&lt;P&gt;We can set some properties for this evaluator, but seem not be able to get them out of the evaluator again (to check the configuration).&lt;/P&gt;&lt;P&gt;INetworkEvaluatorSetup.Data always returns Null, even when we set some properties (which are stored). We always see the default settings when checking the properties through ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;So how to check the set properties of a custom evaluator?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Thibaut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304178#M2913</guid>
      <dc:creator>ThibautDelaere1</dc:creator>
      <dc:date>2015-03-31T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304179#M2914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Thibaut!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which properties are you trying to access on your evaluator? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I downloaded and tested the Departure Time Evaluator and I was able to set and access the Data PropertySet within PropertiesDialog.cs as the evaluator dialog was being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that where you are seeing the problem?&amp;nbsp; While debugging in PropertiesDialog and btnOK_Click?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'd love to find out what your evaluator is trying to do.&amp;nbsp; What is your use-case for a custom evaluator?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304179#M2914</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2015-04-07T17:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304180#M2915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a customer we want to plan shipping routes on inland fairways. To have a good ETA we need to take into account the operating times of the locks and bridges. The time schedules are stored into external xml files. The custom evaluator reads in the time schedule for the lock or bridge and returns a waiting time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the properties for this custom evaluator is the location of the xml files with operating times. We use a properties dialog for the evaluator. &lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;When loading the PropertiesDialog we pass along the list of found INetworkEvaluator objects, from which we take the IpropertySet of evaluatorSetup.Data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;If the propertyset is not null we load the settings from there, if not we show the default settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;But the propertyset is always null, even when the properties were set before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;So we are able to set the properties, but unable to check the values again (when closing and reopening the properties dialog).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Thibaut&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304180#M2915</guid>
      <dc:creator>ThibautDelaere1</dc:creator>
      <dc:date>2015-04-09T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304181#M2916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to reproduce the problem on my end using the DepartureTimeEvaluator!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conclusion&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Make sure that you have editing permission on your network.&amp;nbsp; You should see the APPLY button become enabled on the Network Dataset Properties dialog after you have editing the properties.&amp;nbsp; If Apply is disabled (note that the "Add.." button will probably be disabled as well), then the properties won't persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Gritty Details&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The secret is the "APPLY" button that you see on the Network Dataset Properties dialog.&amp;nbsp; If you don't ever see that button enabled, then the properties won't get truly applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In my case, I did not have the Network Analyst license turned on.&amp;nbsp; That made it so I could not truly edit the schema of the dataset.&amp;nbsp; Once I was able to "Apply" the changes, only then would the properties persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The flaw in the evaluator is that there is no check to make sure that you are able to edit the network schema.&amp;nbsp; That would be tough, as it would involve license checks, schema lock checks, and whatever other checks that could verify editing is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solves your problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304181#M2916</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2015-04-10T16:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304182#M2917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reaction, but I think there's a misunderstanding. We can SET the properties. The issue is when (after closing the network dataset properties and opening it again) we want to GET the properties we did set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On ArcObjects level: we can set the data property on INetworkEvaluatorSetup, but when we try to get the data property, it returns always Null. Although when solving routes we notice that we did set our properties. (&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00250000058z000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00250000058z000000"&gt;ArcObjects INetworkEvaluatorSetup&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that we can never check if somebody did configure the custom evaluator correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 07:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304182#M2917</guid>
      <dc:creator>ThibautDelaere1</dc:creator>
      <dc:date>2015-04-14T07:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304183#M2918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw the same problem you did.&amp;nbsp; I could SET, but after closing the Network Dataset Properties dialog, the properties that were set went back to the default values the next time the dialog was opened (which means that the Data PropertySet was null).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try what I mentioned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open the network dataset properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select the attribute in question and click Evaluators...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Click on the source for which you want to set the evaluator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Click on the evalutors properties button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET your properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Click OK to close the evaluator properties dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ****** Click APPLY on the Attribute properties dialog, then OK ******&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ****** Click APPLY on the Network Dataset properties dialog, then OK ******&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Close the Network Dataset properties dialog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If for some reason, you do not see the APPLY button become enabled, then your properties are not going to persist and the next time you try to get them, that property set will be null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304183#M2918</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2015-04-14T14:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304184#M2919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, thanks for the reply!&lt;/P&gt;&lt;P&gt;I did notice the behaviour you're describing. The Apply button is disabled when for example there's a lock on the network dataset. The more reason to be able to check what settings DO persist in the properties dialog.&lt;/P&gt;&lt;P&gt;But even when the Apply button was enabled and we noticed on the route solving that our settings persist, when you open the network dataset properties for the custom evaluator, we see the default settings. When logging the Data PropertySet, we see this is ALWAYS null. That's why we always see the default settings in the properties dialog and not the actual settings. So setting the properties does work (keeping in mind the Apply button), but getting them to display in the dialog doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe we're calling the Data PropertySet incorrectly? Is there a specific method for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304184#M2919</guid>
      <dc:creator>ThibautDelaere1</dc:creator>
      <dc:date>2015-04-15T06:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304185#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting!&amp;nbsp; Is there a chance I could get a copy of your evaluator to try out here?&amp;nbsp; You could put it on GitHub, or email it to me pstevens at esri.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try with the Departure Time Evaluator, as long as I have write access to the network dataset, the properties persist fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you could try the Departure Time Evaluator sample to see if it behaves the same way as your evaluator.&amp;nbsp; If you do that, be sure to unregister your evaluator, because they might be using the same GUID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 14:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304185#M2920</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2015-04-15T14:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting properties from a custom evaluator</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304186#M2921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I retried one of our first versions of the evaluator and it seems to work fine as long as both the Apply buttons are enabled and used. So we continue with that one.&lt;/P&gt;&lt;P&gt;Many thanks to &lt;A href="https://community.esri.com/migrated-users/3392"&gt;Patrick Stevens&lt;/A&gt;​!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 12:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-properties-from-a-custom-evaluator/m-p/304186#M2921</guid>
      <dc:creator>ThibautDelaere1</dc:creator>
      <dc:date>2015-04-22T12:55:21Z</dc:date>
    </item>
  </channel>
</rss>

