|
POST
|
I found this bit of C code on the ESRI website, midPoints is a IPointCollection pointer object before = 0 as object; midPoints.AddPoint(m_curve.FromPoint, ref before, ref missing);
... View more
07-11-2013
03:36 AM
|
0
|
0
|
2127
|
|
POST
|
Another approach is to: Extract the end points create XY fields concatenate xy field into a string field do a summary stats on string field, this gives you the valency of the node (how many polylines attached to it) join table back to node featureclass and label with valency Duncan
... View more
07-11-2013
03:26 AM
|
0
|
0
|
1138
|
|
POST
|
Andrew, Sounds like you want to be hooking into the IActiveViewEvents Interface and capture when the map changes in someway. Duncan
... View more
07-11-2013
03:10 AM
|
0
|
0
|
611
|
|
POST
|
Sounds like the source workspace is corrupt. Is your workspace an Access database or a personal geodatabase? I would use arcmap to create a new geodatabase then copy your data into it to ensure the GDB_ tables exist.
... View more
07-11-2013
02:52 AM
|
0
|
0
|
1039
|
|
POST
|
Carsten, I'm guessing the error is occurring because your candidate is pointing to a path class which is a sequence of connected segments, try a polyline class? Duncan
... View more
07-11-2013
02:48 AM
|
0
|
0
|
2127
|
|
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
|
1645
|
|
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
|
1645
|
|
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
|
2312
|
|
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
|
3195
|
|
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
|
508
|
|
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
|
766
|
|
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
|
3195
|
|
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
|
3195
|
|
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
|
978
|
|
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
|
1801
|
| 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 |
Monday
|