|
POST
|
Richard, Richard was talking about calling the existing Summary statistics tool. You would call it using the IGeoProcessor interface. This page shows an example of the calculate geo-processing tool being called. You can even call entire models. Duncan
... View more
07-10-2013
01:46 AM
|
1
|
0
|
1617
|
|
POST
|
Richard, I would consider abandoning your approach of using the IDataStatistics interface as ESRI introduced a bug with the 10.1 SP1 release that is some sort of memory leak and will cause your application to fail. It is discussed in this thread.I had terrible problems with my application failing until I stopped using it. Hopefully they will fix it in 10.2 Richards idea of calling the summary tool is probably the easiest way of doing things. Duncan
... View more
07-09-2013
01:05 AM
|
0
|
0
|
1617
|
|
POST
|
Tim, I was able to spoof up a similar tool and it all worked for me. One difference is where ArcGIS is installed. What operating system are you developing on (you should always state your system specs as this helps us to help you)? If you are on Windows 7 64bit then double check the path name to your tool box, mine was in: pythonaddins.GPToolDialog('C:\\Program Files (x86)\\ArcGIS\\Desktop10.1\\ArcToolbox\\Toolboxes\\Data Management Tools.tbx','CopyFeatures') Duncan
... View more
07-08-2013
01:19 AM
|
0
|
0
|
2258
|
|
POST
|
Terese, When you declared the pointer m_appStatusEvents did you declare it in the manner of: Private m_mapStatusEvents As IApplicationStatusEvents_Event For some reason an Event interface in VB .net needs to have that "_Event" at the end of it. No idea why but thats what must be done. Duncan
... View more
07-03-2013
01:11 AM
|
0
|
0
|
3064
|
|
POST
|
Before you call your AddGraphicToMap procedure you need to convert your XY to a Point then use the ITopolocalOperator.Buffer method to create your circle. This would become your geometry that you pass to the procedure.
... View more
07-01-2013
01:51 AM
|
0
|
0
|
494
|
|
POST
|
Is this a program you have created? If so check you are importing the GeoProcessing library? If not add it, recompile. If it is a program created by another developer then maybe its for another version of ArcMap. For the record you say nothing about your system setup, this is not very helpful.... What version of ArcMap, operating system, service packs?
... View more
07-01-2013
01:46 AM
|
0
|
0
|
744
|
|
POST
|
Terese, Have a look at this sample code it shows the use of IApplicationStatus interface to test if the framework has been initialized first before making changes to the GUI. Duncan
... View more
07-01-2013
01:10 AM
|
0
|
0
|
3064
|
|
POST
|
OK dumb question coming up, why don't you just make the toolbar without the buttons? If the intention is to remove them as soon as the document opens why not simply create the toolbar without them?
... View more
06-28-2013
10:56 AM
|
0
|
0
|
3064
|
|
POST
|
What are you doing with the table? I have found that ArcCatalog bombs out if I try to drag 'n' drop the table into ArcMap. I mention this on that technical KB article and point out that: The only way to open that table in ArcMap and start using it is to go via the Add data button route
... View more
06-28-2013
08:10 AM
|
0
|
0
|
955
|
|
POST
|
Mathew, For whats it worth I knocked together the following VBA code and was able to successfully change the caption on a toolbar button which is an ESRI Addin. This is what I used: Public Sub ChangeText() Dim pApp As IApplication Set pApp = Application Dim pCBs As ICommandBars Set pCBs = pApp.Document.CommandBars Dim pCI As ICommandItem Set pCI = pCBs.Find("xxx_xxx_xxx") Dim pCB As ICommandBar Set pCB = pCI Debug.Print pCB.Count ' Number of items of toolbar Set pCI = pCB.Item(0) Debug.Print pCI.BuiltIn ' Should returns true, which it does! pCI.Style = esriCommandStyleIconAndText pCI.Caption = "Spanish" pCI.Refresh End Sub
... View more
06-28-2013
08:05 AM
|
0
|
0
|
1744
|
|
POST
|
Michael, You do not specify which version of ArcMap you are using or your development environment, may be that is why no one has answered your question... In VB .net I use this to force a refresh in my ArcMap desktop applications but this may not be your problem?
Dim App As New Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase
App.DoEvents() Duncan
... View more
06-25-2013
12:35 PM
|
0
|
0
|
829
|
|
POST
|
Teresa, I've not tried this with an AddIn button, so you'll need to test this but you could get a handle on the toolbar then using the interface ICommandBar get a handle on the button as an ICommandItem. This has a Delete method to remove it from the toolbar Duncan
... View more
06-25-2013
12:30 PM
|
0
|
0
|
3064
|
|
POST
|
You could try using the IGeoProcessor and run the Featureclass to Featureclass tool to achieve this. Look at this document as there is an example in it showing you how to call the tool from the GeoProcessor. Duncan
... View more
06-14-2013
05:53 AM
|
0
|
0
|
1823
|
|
POST
|
I don't believe there is a way to supress such messages if you are constructing a model in modelbuilder. The tool would not being doing its job if it was not warning you of unusual situations (such as your empty table). If this is truly upsetting you an alternate approach is to keep an empty copy of your table somewhere, delete the entire table that gets filled with data and then copy over the empty table.
... View more
06-14-2013
12:56 AM
|
1
|
0
|
1048
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 3 | 3 weeks ago | |
| 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 |
2 weeks ago
|