POST
|
I have this exact issue, but it doesn't seem that the event handler for "on-set-definition-expression-complete" has been added. Any other ideas for a simple implementation? It seems the definition expression will break out the query into batches. I need to know when they are all done resolving.
... View more
09-29-2020
11:05 AM
|
0
|
0
|
1184
|
POST
|
How do I set the version for the network dataset in ArcObjects when building (10.1)? I am using ArcObjects for Java 10.4. I followed this example:https://desktop.arcgis.com/en/arcobjects/latest/java/9afe16a8-02ad-4cb9-9b0b-747123ed7da6.htm but have added landmarks to the directions. The version defaults to 10.0 so the landmarks are not incorporated.
... View more
04-11-2019
11:14 AM
|
0
|
0
|
365
|
POST
|
Ours still fails randomly. I found that the spatial index doesn't get built. I have to go in and hit "Create" and then it's fine.
... View more
04-11-2019
11:10 AM
|
0
|
0
|
2526
|
POST
|
We have a machine running windows 10/ 10.5.1 having the same issue. Has there been a fix for this? I know that 10.7 is being released soon, but if the problem persists, then that's no good either.
... View more
03-06-2019
07:36 AM
|
0
|
2
|
4618
|
POST
|
Did you ever figure this problem out? I am running into the same issue. The dataset has been created through a script for years without a problem. Recently this started happening. I did find geometry errors in one of the datasets I am appending, but I fixed those. When I export the feature class out it renders without any problems.
... View more
02-08-2019
05:25 AM
|
0
|
2
|
2526
|
POST
|
Resurrecting this thread, but do you remember how you went about discovering your answer?
... View more
02-06-2019
05:56 AM
|
0
|
0
|
282
|
POST
|
Did you ever get an answer for this? I did exactly this for a map service using an SOI (java), but unfortunately you cannot write SOE/SOI's for geoprocessing services (which I am trying to figure a work around for now).
... View more
06-22-2018
01:35 PM
|
0
|
3
|
1448
|
POST
|
Can the esri-loader for imbedding esrijs into angular projects be used for non-esri dojo widgets as well? Can I get access to dojox/charting for instance? Anybody have any examples of this?
... View more
04-23-2018
11:22 AM
|
0
|
0
|
366
|
POST
|
Before saving the mxd, arcpy.RefreshTOC() and arcpy.RefreshActiveView() must be called. The documentation samples do not show this.
... View more
12-14-2017
11:22 AM
|
0
|
0
|
495
|
POST
|
Adding RefreshActiveView and RefreshTOC get the the layer to stay in the mxd before saving. Weird this is not in the documentation for AddLayer.
... View more
12-14-2017
11:01 AM
|
0
|
0
|
295
|
POST
|
And I'm actually having trouble adding ANY layers. I've seen other threads about this issue, but it seems that everyone else is running their code within arcmap, not stand-alone, so my case may be different.
... View more
12-14-2017
06:36 AM
|
0
|
0
|
495
|
POST
|
Also, Im on arc 10.5. I guess I could install pro on my computer. I did see that the process is easier. If you have any thoughts on the solution without pro, that would be great. Thanks in advance. arjun
... View more
12-14-2017
05:51 AM
|
0
|
0
|
495
|
POST
|
I found that when a network dataset it updated, the NA layer in the mxd doesn’t automatically incorporate those changes. The layer must be removed and re-added to the mxd. I host an endpoint on arcserver that has some NA layers. I am automating the republishing of this service. To do this successfully though, I need to remove the layers and add them again. I can remove the layers without a problem. But having difficulty adding them back in. I have also tried exporting the layer to disc and then using the arcpy.mapping.Layer to import it and add to the mxd, but no luck. Here is my code: mxd = arcpy.mapping.MapDocument(pathtoMXD) df = arcpy.mapping.ListDataFrames(mxd,"Layers")[0] ndLayer = ''; layers = arcpy.mapping.ListLayers(mxd, "", df) for lyr in layers: if lyr.name == "Closest Facility" or lyr.name == "Route": arcpy.mapping.RemoveLayer(df, lyr) print "layer removed" elif lyr.name =="Standard_CL_ND": ndLayer = lyr print "found nd layer" else: pass mxd.save() cfObject=arcpy.MakeClosestFacilityLayer_na(in_network_dataset=ndLayer, out_network_analysis_layer="Closest Facility", impedance_attribute="DriveTime", travel_from_to="TRAVEL_TO", default_cutoff="", default_number_facilities_to_find="1", accumulate_attribute_name="",UTurn_policy="ALLOW_UTURNS", restriction_attribute_name="Oneway", hierarchy="NO_HIERARCHY", hierarchy_settings="", output_path_shape="TRUE_LINES_WITH_MEASURES", time_of_day="", time_of_day_usage="NOT_USED") cfLayer = cfObject.getOutput(0) #arcpy.SaveToLayerFile_management (cfLayer,"c: publish catawba CFLayer") #addLayer = arcpy.mapping.Layer("c: publish catawba CFLayer.lyr") arcpy.mapping.AddLayer(df, cfLayer, "TOP") mxd.save()
... View more
12-14-2017
05:46 AM
|
0
|
0
|
495
|
Title | Kudos | Posted |
---|---|---|
1 | 06-26-2015 10:53 AM | |
1 | 05-19-2015 10:27 AM | |
1 | 04-19-2016 12:53 PM | |
1 | 05-05-2015 08:10 AM | |
2 | 05-05-2015 10:26 AM |
Online Status |
Offline
|
Date Last Visited |
07-14-2021
12:26 PM
|