|
POST
|
I guess if we are not creating online apps or mobile apps we are not really relevant anymore... There used to be ArcScripts where users contributed tons of developer material http://arcscripts.esri.com/ They merged that in with EDN then resources, then when esri merged that with arcgis online, I guess that got left behind. You can search for desktop addins (no COM extensions from what I see.)
... View more
02-04-2013
05:08 AM
|
0
|
0
|
494
|
|
POST
|
ArcMap keeps some COM objects alive after the edit session that have the locks. When ArcMap is shutdown, the objects are destroyed which removes the locks. ESRI's locking and especially failure to release locks has driven me crazy for years. If you keep a reference to the featureclasses, workspace and any other objects accessed in your code and explicitly call marshal.ReleaseCOmObject (or even a finalRelease) after the layers have been removed, you may be able to release the locks. Beware if you use the undo function after removing the layer to get it back, you might get unexpected results.
... View more
01-30-2013
11:22 AM
|
0
|
0
|
2086
|
|
POST
|
This might be in violation of your RDBMS license also if you user a commercial database such as oracle or sql server. ArcGIS server allows you to expose Geoprocessing services that could publish your arcpy script to a web service... Seems like a lot of licensing costs and/or liability to do probably something very simple.
... View more
01-30-2013
10:52 AM
|
0
|
0
|
509
|
|
POST
|
Looks to me like you are trying to add a path geometry into a polyline feature when you specify the item 0 of the collection... If you add the geometry collection (polylineclass object) instead of the first element of the collection, do you get the same problem?
... View more
01-30-2013
10:45 AM
|
0
|
0
|
979
|
|
POST
|
First of all without exception handlers, it will be next to impossible to debug the code. Any method called by external code (oncreate, onclick, event handlers...) should always have exception handlers. Should be the first lines of code any programmer writes. Secondly the array is declared empty and then never populated. Checking for is nothing will not work because the array being declared is not nothing, it is however of zero length. So if you attempt to get element length -1, you are passing in -1 as an index which will cause an error. You need to check if the length of the array. The exception being raised, if handled, would tell you so, if indeed that is the problem.
... View more
11-22-2012
04:32 AM
|
0
|
0
|
1414
|
|
POST
|
Maybe FullName property is nothing... I don't see the code that declares the IName variable, nor does it have the part that got the dataset enumeration. Are you getting it from the document, the workspace, a featuredataset? Do you have layers with broken paths, etc.
... View more
11-20-2012
07:59 AM
|
0
|
0
|
1764
|
|
POST
|
I gave this a try on ArcGIS 10 SP5 and it worked ok... The table was an Oracle table accessed through SDE. In the original code, I noticed a space between the "DS" and ".FullName", probably just a copy/paste issue... When converting VBA code from 9.3 mxds to 10, originally, I noticed that many of my references where pooched. I had to go to tools, references and remove the missing ones, then it worked ok. It seems VBA stops loading references as soon a it gets to a missing one, so if the one you need is after that in the list, it doesn't work. Dim mxd As IMxDocument
Set mxd = ThisDocument
Dim map As IMap
Set map = mxd.FocusMap
Dim tabcoll As ITableCollection
Set tabcoll = map
Dim tabl As ITable
Set tabl = tabcoll.Table(0)
Dim DS As IDataset
Set DS = tabl
Dim TableName As IName
Set TableName = DS.FullName
Dim dsName As IDatasetName
Set dsName = TableName
Debug.Print dsName.Name
... View more
11-20-2012
05:30 AM
|
0
|
0
|
1764
|
|
POST
|
Generalize uses douglas poiker or a variation thereof. You can use it as a GP tool or the method on the path or the geometryserver (probably this one for server implementation.) Side note, apparently Peucker changed his name to Poiker in 1979... I was just wondering about the name difference...
... View more
11-15-2012
11:23 AM
|
0
|
0
|
2875
|
|
POST
|
Sounds like an SDE problem. When you make a selection or cursor with few elements, everything is done in memory. Beyond a threshold, around 300, the selection is done in SDE tables. The SDE forums has more information about it. I usually just corner our DBA till he fixes it.
... View more
11-02-2012
05:22 AM
|
0
|
0
|
1504
|
|
POST
|
Looks like you are trying to open the workspace twice. Open from file with the sde connection opens the workspace, there is no need to retrieve the property set to try to open it again, it will just return the same workspace. Running in debug you may be using a different user (run as...) which has access to the network resource where the sde file is located. You may also have sharing problems with multiple users accessing the same sde file... You may want to check if the file exists and its' properties through standard .net methods before trying to open it.
... View more
11-01-2012
11:48 AM
|
0
|
0
|
1504
|
|
POST
|
Buttons can be moved from one toolbar to another very easily, go into customize mode, move the button to another toolbar. Having the enabled property on the toolbar level wouldn't make sense for that reason. The property is on the command.
... View more
10-29-2012
12:12 PM
|
0
|
0
|
650
|
|
POST
|
If your button is a straight Command, you could have multiple instances of it. So maintaining a reference to the command on an extension would not work. The extension will always be a unique instance (by definition), so you can keep a reference to the extension on your two controls and use it to pass values back and forth (this is a model I use a lot.) You can also place a button on your toolcontrol along side of your combobox, that works nicely some times.
... View more
10-29-2012
10:05 AM
|
0
|
0
|
1698
|
|
POST
|
You can create a shared variable on the class that gets set whenever the value changed event is triggered. I am not keen on this sort of thing because it forces you manage an extra variable. You can also get a reference to the other tool control item from the toolbar and cast it to a variable defined as your custom class that has the combobox and get the value from an instance method. ToolControl items are usually singletons anyway (only once instance allowed.) If you need to do it between difference assemblies, you will need to define your own custom interface to call and reference the assembly since you can't cast to a class in the other assembly.
... View more
10-29-2012
07:51 AM
|
0
|
0
|
1698
|
|
POST
|
IGxApplicationEvents_Event won't show up in intellisense, or any where else but it should still compile and work. Some quirk of outbound interfaces I have been told.
... View more
10-22-2012
09:23 AM
|
0
|
0
|
630
|
|
POST
|
Deprecating interfaces breaks the COM contract so it will probably be there for the foreseeable future. The only time I saw esri deprecate interfaces is when they deprecated the class too. if you look at the classes that implement IFeatureLayer2 and compare to the classes that implement IFeatureLayer, you will notice not all classes the implement IFeatureLayer, implement IFeatureLayer2, so for those you have no choice. ArcObjects is littered with 2, 3, 4... interfaces for the precise reason that COM forbids modifying a published interface so if you have a compelling reason to use IFeatureLayer (maybe the method you want to use returns IFeatureLayer or takes it in,) then you are fine.
... View more
10-22-2012
07:25 AM
|
0
|
0
|
967
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2024 10:26 AM | |
| 1 | 07-05-2024 08:45 AM | |
| 1 | 10-05-2022 02:19 PM | |
| 6 | 03-27-2017 01:16 PM | |
| 1 | 05-05-2016 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
07:37 AM
|