|
POST
|
We haven't made any changes to the tool. This tool won't work the way you want in ModelBuilder. There is a plan to create a new similar tool - but there is no tentative time-frame yet. Have you tried my Python script? This may be the only workaround comes to my mind.
... View more
10-11-2012
07:22 AM
|
0
|
0
|
4264
|
|
POST
|
Have you checked both layer.isGroupLayer and layer.supports("DATASOURCE")? See my code below: import arcpy
try:
mxd = arcpy.mapping.MapDocument(r"C:\test\mymap.mxd")
layers = arcpy.mapping.ListLayers(mxd)
for layer in layers:
if not layer.isGroupLayer:
if layer.supports("DATASOURCE"):
print layer.dataSource
except:
print "Exception ...."
... View more
10-01-2012
12:21 PM
|
1
|
0
|
2317
|
|
POST
|
I've just tested on 10.0 SP5 and cannot reproduce the issue. Which version of ArcGIS you are using? Can you post your code? Don't forget to use code block (click on # sign above). Have you tested this line? if lyr.supports("DATASOURCE"):
... View more
09-27-2012
11:03 AM
|
0
|
0
|
2317
|
|
POST
|
this works a treat! I wasn't aware of the Near tool before, so that is really useful to know. James, True that Near returns a distance of zero if two polygon touches but Near also gives a distance of zero if one polygon is completely inside the other without touching. Just take the precaution.
... View more
09-17-2012
12:36 PM
|
0
|
0
|
6323
|
|
POST
|
Use Complete Contains and Contains relationships (for Select by Location or Spatial Join) - one after another. If two polygons are exactly superimposed then neither completely contains the other. So, your workflow would be: First, use Select by Location with myparcels as target and provparcels as source. All provparcels that are on top or inside myparcels will be selected. Next, use Select by Location again but this time change the relationship to Completely Contains. Parcels that have not been changed between the two sets won't be selected. The difference between the two selection sets is the set of parcels that have been changed. Now, follow the same steps but this time switching the source and target layer. I have tested with a few polygon created instantly. If you want me to test with your data you can send me a subset (remove metadata if private data) containing 10-15 parcels from each layer. Thanks.
... View more
09-17-2012
12:23 PM
|
0
|
0
|
6323
|
|
POST
|
Hi Michalis, Which version (& Service Pack) of ArcGIS you are using? Also, let me know your operating system. Thanks, Nobbir
... View more
09-13-2012
11:15 AM
|
0
|
0
|
938
|
|
POST
|
Okay, I tried with your project and got the same error you are getting. I then looked into the project itself. The project organization kind of complex to me :(. So, I created a greatly simplified visual studio project just using your C# file inside the Tools folder (SleeperTool.cs). I can use this tool in Desktop and am able to publish it to ArcGIS Server and can consume the service without any error. I have attached my project. One question, what is the purpose of the AbstractGPTool class? Cannot you derive your SleeperTool class from IGPFunction2 directly as you did for GPFactory class where you derived the class from IGPFunctionFactory?
... View more
09-11-2012
11:48 AM
|
0
|
0
|
1237
|
|
POST
|
Setting IGPFunctionName.MinimumProduct to esriProductCodeBasic should not fail. I'll try on my side with similar settings. Meanwhile, to get going, just return true in your isLicensed method. public bool IsLicensed()
{
return true;
} Also, if possible send your project to Kevin - we'll see.
... View more
09-10-2012
09:57 AM
|
0
|
0
|
2010
|
|
POST
|
I'm not trying to hi-jack this Kevin, rather, you have chipped in at the right moment. Kirk, please check out the help for error 000151 which states "tool or function referenced is not supported for use in ArcGIS Server". The help topic for the error lists a number of tools/functions/scenarios where you may get this error.
... View more
09-10-2012
07:58 AM
|
0
|
0
|
2010
|
|
POST
|
Let me be clear the steps you have followed. 1. You have compiled the C# project by removing the reference to ADF and adding it back AND - setting the Debug mode to 'Any CPU'. 2. In order to run the tool in ArcMap you need to register it with the 32-bit EsriRegAsm located at ../Program Files (x86)/Common Files/ArcGIS/bin - if the registration fails then you have some problem with the project settings. Assuming step 2 succeeded. 3: Run the tool in ArcMap. If you want to publish the tool it will fail as the Server does not know about it yet. So, don't publish now until performing step 4. 4. Register the DLL with the 64-bit EsriRegAsm located at /Program Files/Common Files/ArcGIS/bin folder. If registration succeeds .. 5. From ArcMap, share the result as a service. 6. You should now be able to consume the service from any machine whether the DLL is registered with that machine. Let me know what error message you get (if any).
... View more
09-09-2012
04:05 PM
|
0
|
0
|
2010
|
|
POST
|
HI Johannes, At 10.0 the MSIL version for ESRI.ArcGIS.ADF was not available. The ADF available at 10.1 works for 'any cpu' - that is, it works for 32-bit as well as 64-bit. You just need to set the debug mode to 'Any CPU'. Could you please tell me what was your project setup at 10.0, especially: - Debug mode - 32-bit or Any CPU? - Was the reference to ESRI.ArcGIS.ADF set to False? The best approach would be to recompile the 10.0 project at 10.1 - if necessary remove the reference to ADF and add it back. Then follow the help doc. Let me know if you face any trouble. Thanks. Nobbir, Geoprocessing SDK
... View more
09-06-2012
10:07 PM
|
0
|
0
|
2010
|
|
POST
|
The missing icon means there is a syntax error in your code. Check out this help topic: http://resources.arcgis.com/en/help/main/10.1/#/Debugging_Python_add_ins/014p0000001n000000/
... View more
08-05-2012
09:33 PM
|
0
|
0
|
1278
|
|
POST
|
If you haven't figured it out or haven't received any response yet: There is an example in the add-in help topic: Creating an add-in combo box This code in that examples populates the combo box when it gets the focus: self.items = []
for layer in layers:
self.items.append(layer.name) Later, in any other method of the combo box (or of any other control - button/tool) if you want to add more item to the items list, use append to do so. To set a value in the current display you can use value property: combobox_id.value = "new item"
combox_id.refresh()
... View more
07-17-2012
08:48 AM
|
0
|
0
|
612
|
|
POST
|
Glad to know the geoprocessing part is working 🙂 I will check out your project on Monday.
... View more
07-15-2012
03:08 PM
|
0
|
0
|
1563
|
|
POST
|
Talk to your system admin people. There may be some issues with license manager. One more thing, just try to run the same tool with same parameter values from ArcMap. Do the tool run successfully?
... View more
07-14-2012
08:35 AM
|
0
|
0
|
1563
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-18-2019 03:56 PM | |
| 1 | 05-06-2020 01:18 PM | |
| 1 | 07-23-2021 10:33 AM | |
| 1 | 07-28-2020 09:10 AM | |
| 2 | 07-27-2020 04:47 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-25-2021
03:13 PM
|