|
POST
|
Just want to say I had exactly the same problem and was pulling my hair out. I read this thread and created a new map in AGOL then added my "synced" feature layers and it just worked... Thanks!
... View more
06-09-2015
08:45 AM
|
0
|
0
|
2820
|
|
POST
|
Just a side note: if you are posting code for others to review you should post it with syntax highlighted as it will be easier to read. Here is a page to help you edit your original question.
... View more
06-08-2015
07:19 AM
|
0
|
0
|
1023
|
|
POST
|
A someone who deals with data often from big named organisations who provide little or no metadata I have found the geoprocessing history log valuable for working out how the data was constructed. I'm constantly amazed by people giving out data with no explanation about how it was built and what those fields actually represent. In these cases I often have nothing more than the geoprocessing history to go by because the originator of the dataset does not actually work at the organisation anymore. I urge you not to delete such vital information! Who cares what your data path is, it's not as if people can get access to it. In fact it's very useful, you may get run over by a bus and someone who is trying to understand your data can go back to your organization and say "..well actually the intermediate step was created and stored here, it says that in your data!"
... View more
06-06-2015
05:39 AM
|
2
|
0
|
2614
|
|
POST
|
Sounds like you want to run the spatial join tool in arctoolbox. This would join TAZ (what every that is) to you bike network and then you run a summary statistics tool summing length by TAZ ID.
... View more
06-06-2015
05:23 AM
|
1
|
0
|
731
|
|
POST
|
Can you reformat your code, it is very difficult for others to read when its all on one line.
... View more
05-29-2015
09:44 AM
|
0
|
1
|
1175
|
|
POST
|
Short answer is no. You need a developer machine that has the same version if your client is using an older version of Arcmap. I have found addins are upwardly compatible. I asked a similar question here. If it is of any conciliation I too have shot myself in the foot by trying to stay up to date with ESRI software when clients don't!
... View more
05-29-2015
09:39 AM
|
0
|
0
|
1189
|
|
POST
|
Hmmm...I started wandering around on the internet and found this discussion as a way of customizing an existing esri dialog: arcgis desktop - Customizing Identify Dialog in ArcMap - Geographic Information Systems Stack Exchange Your question was also asked here but never got an answer: arcgis 10.0 - Is it possible to add a command to the ArcMap Find dialog context menu? - Geographic Information Systems S…
... View more
05-22-2015
03:28 AM
|
1
|
3
|
4042
|
|
POST
|
My gut feeling is that you cannot customize the find dialog. It would require you getting a handle of the form, inserting controls with their underlying code and I don't think that is possible. Happy to be proven wrong!
... View more
05-21-2015
03:08 PM
|
0
|
5
|
4042
|
|
POST
|
You are using the wrong approach. The execute method does what it says it executes the tool, you want to open it. Below is some VBA that shows you how to open a tool interface rather than execute it. I have not tried to use it to open a Python toolbox tool so have ago? Public Sub OpenCalculateTool()
' Hook into Toolbox and get the tool
Dim pUID As New UID
pUID = "esriGeoprocessingUI.ArcToolboxExtension"
Dim pArcToolboxExtension As IArcToolboxExtension
Set pArcToolboxExtension = Application.FindExtensionByCLSID(pUID)
Dim pArcToolbox As IArcToolbox
Set pArcToolbox = pArcToolboxExtension.ArcToolbox
Dim pGPTool As IGPTool
Set pGPTool = pArcToolbox.GetToolbyNameString("CalculateField")
' Create messages, required by Invoke method
Dim msgs As IGPMessages
Set msgs = New GPMessages
' Get existing parameter structure
Dim pArray As IArray
Set pArray = pGPTool.ParameterInfo
' Declare Parameter interfaces
Dim pGPParameter As IGPParameter
Dim pGPDataType As IGPDataType
Dim pGPParameterEdit As IGPParameterEdit
' Set the parameters of the tool
Set pGPParameter = pArray.Element(0)
Set pGPParameterEdit = pGPParameter
Set pGPDataType = pGPParameter.DataType
Set pGPParameterEdit.Value = pGPDataType.CreateValue("a") ' Featurelayer name
Set pGPParameter = pArray.Element(1)
Set pGPParameterEdit = pGPParameter
Set pGPDataType = pGPParameter.DataType
Set pGPParameterEdit.Value = pGPDataType.CreateValue("xx") ' Field
Set pGPParameter = pArray.Element(3)
Set pGPParameterEdit = pGPParameter
Set pGPDataType = pGPParameter.DataType
Set pGPParameterEdit.Value = pGPDataType.CreateValue("VB")
' Open the tool
Dim pGPToolCommandHelper As IGPToolCommandHelper2
Set pGPToolCommandHelper = New GPToolCommandHelper
pGPToolCommandHelper.SetTool pGPTool
pGPToolCommandHelper.InvokeModal 0, pArray, True, msgs
End Sub
... View more
05-15-2015
05:39 AM
|
2
|
1
|
2380
|
|
POST
|
In the help for this geo-processing tool it sets the workspace in the sample code, try doing that?
... View more
05-15-2015
04:11 AM
|
0
|
0
|
870
|
|
POST
|
To add to Tero's question, the first image above it looks like a graphic has been drawn not a sketch, which is it?
... View more
05-15-2015
03:37 AM
|
0
|
0
|
1638
|
|
POST
|
I'm guessing you want something like a button on a tool bar? File geodatabase can't store forms. If you want a custom data entry form you need to build it in something like visual studio and create an addin. This would then listen out for edit events if you are in edit mode or could do updates outside an edit session.
... View more
05-15-2015
02:41 AM
|
0
|
0
|
2056
|
|
POST
|
I created a pythonaddin which contained a single toolbar with a single button. The onClick event is calling a model in a toolbox. Just like your code: pythonaddins.GPToolDialog(r'C:\Users\stazicd\AppData\Roaming\ESRI\Desktop10.1\ArcToolbox\My Toolboxes\PVP Zoom.tbx','PVPZoom') Your toolbox is PVP Zoom.tbx and you are calling the tool PVPZoom. But from this alone I cannot tell if you are calling a script tool or a model tool? In my test I was calling a model and it worked but was throwing that odd TypeError message in the python console for some reason... But in your reply above you now say it was a script tool (some python exposed as a tool). I'm wondering if it is to do with that. Try making a simple model and running your pythonaddin to call that. If that works (as it did in my case) we can at least say your pythonaddin code is correct and it's something to do with the script code that you are calling?
... View more
05-15-2015
01:30 AM
|
1
|
0
|
3741
|
|
POST
|
Don, I'm using 10.3 and tested your code. I created a pythonaddin tool bar with a single button on it. The model in my toolbox ran without a problem and like you it also ran from the python command line. What I did notice by chance (as I had the python window open) is it threw up an error message before the actual model tool opened: TypeError: GPToolDialog() takes at most 1 argument (2 given) I then tested out of curiosity a model with and without parameters, both opened with the same TypeError message appearing in the python command line window. I also tried one parameter like C:\temp\toolbox.tbx\mymodel and it threw an error saying it was missing tool_name argument! What is not clear from your explanation is if the tool you are trying to open in the toolbox is a model tool or a script tool? May be this is an issue?
... View more
05-14-2015
03:52 AM
|
1
|
2
|
3741
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|