|
POST
|
If you have multiple users writing the database at the same time I would take a look at what the versioning workflow has to offer. Unless your transactions are very short and there are no risks of collisions (like you seem to get), versioning is an attractive model. The following links talks about this. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/00010000010s000000.htm http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000000qt000000.htm
... View more
05-26-2011
11:58 AM
|
0
|
0
|
625
|
|
POST
|
This sample uses IIdentify and pretty much all the objects you would need. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000004t5000000.htm
... View more
05-19-2011
05:19 AM
|
0
|
0
|
1700
|
|
POST
|
If your layer X references a featureclass then it is featureLayer class. Featurelayer classes implement the IIdentify interface. You can use it to call the identify method with the point you clicked. This returns an array of IIdentifyObjs, the IIdentifyObj has a flash method. In the case of a featurelayer, the IdentifyObjs should be FeatureIdentifyObjects, IFeatureIdentifyObj has a reference to the feature, which has the objectid.
... View more
05-18-2011
11:34 AM
|
0
|
0
|
1700
|
|
POST
|
Yes the value could be any type. In fact different fields will have different types. The IField.Type will get you the field type and allow you do what you need to with the value. If you need to deal with all the values in the same way, string is probably the most flexible type you can use. However casting a shape or a blob to a string can yield unpredictable results, you need to check the field type and handle those (I usually just use the word "Shape" or "Blob" or "raster" if I need a string.) Dates also need to be converted to string with the pattern of your choice. Further mode. if any of your rows have null values in them, the code won't work, you need to declare the value variable as object and check if the it is dbnull.value (in .net), trying to cast dbnull value to string causes an exception.
... View more
05-18-2011
05:55 AM
|
0
|
0
|
569
|
|
POST
|
This discussion is already going on in this thread and has had esri attention: http://forums.arcgis.com/threads/27823-MVP-structure-answered-posts-and-other-promised-forum-improvements
... View more
05-18-2011
05:44 AM
|
0
|
0
|
593
|
|
POST
|
Hi Fossi, I have done this, triggering code inside ArcMap from outside. I didn't use an addin, I used the old way of writing code registering the dll but I think it would be the same. The way I did it was to write a command, then from the external process, through the approt, get the arcmap instance, then through application's document commandbars, you can find the command by classid and invoke it (call onclick.) If you need to pass in data to make whatever you need to happen, that is a little trickier. I made an extension (extension instances are unique to the arcmap process) got a reference to extension from the external process through the application, set the values (literals only: string, integer, double..., no geometry, extent, etc.) Then invoke the command, and the command retrieves the values from the extension and does its thing. Trying the put the code in the extension and invoking a method on the extension, even by raising a custom event on the extension always caused me problems with the process memory space.
... View more
05-18-2011
05:41 AM
|
0
|
0
|
537
|
|
POST
|
pEnumFeat = pMxdoc.FocusMap.FeatureSelection pFeat = pEnumFeat.Next ' loop through each field and add the field name to a list For ii = 0 To fields.FieldCount - 1 Field = fields.Field(ii) fieldname = Field.Name fieldvalue = pFeat.Value(ii)
... View more
05-17-2011
12:19 PM
|
0
|
0
|
2024
|
|
POST
|
If you just want to loop through all the values you could do something like this feature = get feature with the method of your choice i = 0 for i to feature.fields.count -1 theValue = feature.value(i) theFieldName = feature.fields.field(i) Of course you have to be careful the way you handle the field values, you will be getting objectids, shapes, integers, strings and probably dbnulls. Cheers
... View more
05-17-2011
09:37 AM
|
0
|
0
|
2023
|
|
POST
|
I suggest you have a look at this article: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001nn000000 The problem I see, if you are creating geometries, symbols and graphic elements in the memory space of the process of your application and trying to add them into the map which is running in a different memory space in the ArcMap.exe process. You need to use the objectFactory if you want to do that sort of thing.
... View more
05-17-2011
06:19 AM
|
0
|
0
|
537
|
|
POST
|
Ok so if I pretend to develop some Desktop extension for the version 10, I must subscribe to the EDN. Only if you plan to use Engine controls with your desktop extension. You can do a lot without those controls.
... View more
05-12-2011
05:16 AM
|
0
|
0
|
1450
|
|
POST
|
Licensing is a bit opaque, I understand the frustration. I am not all that familiar with xtools, last time I looked it was in 2003. In ArcGIS 9.3.1, there is no technical limitation to adding a mapcontrol to your project but my understanding is this somehow violates a license agreement. Unless you plan on never moving to ArcGIS 10, I would avoid that because there is a technical limitation to doing it in ArcGIS 10. If you have an EDN subscription you can do it. If you plan on doing development with ArcGIS Engine controls (map, toc, toolbar, pagelayout controls) and ArcMap, you need EDN + some desktop license (arcview, arceditor or arcinfo.) So you have to pay twice for the privilege.
... View more
05-11-2011
09:12 AM
|
0
|
0
|
1450
|
|
POST
|
"I have one Arcinfo license, and I don't know if I would have to purchase some developer license to extend the ArcMap with customized applications developed in Visual Studio (.NET) and ArcObjects." Yes you can customize ArcMap with your ArcInfo license, you don't need anything else, this is what I have. You could get in trouble in ArcGIS 10 if you tried to add a mapcontrol to a dockable window, you can't do that without an EDN license. EDN does not include a license to run ArcMap. EDN licenses are for development and support of ArcGIS Engine and Server, that means you can't use these licenses for production systems.
... View more
05-11-2011
05:14 AM
|
0
|
0
|
1450
|
|
POST
|
For 9.3, you do not need a license for VBA. For ArcGIS 10, you need a VBA license from esri but license is free, you just have to request it. To develop ArcGIS desktop in 9.3 or 10 with Visual Studio (2005 or 2008 for ArcGIS 9.3, 2008, 2010 for ArcGIS 10), you do not need an EDN license. You can just install the developer kit. To develop server or Engine applications, you need an EDN license. EDN is not so useful to develop desktop applications because it doesn't include a license ArcGIS desktop, which you need for testing, etc. I would advise against developing anything new with VBA since it's on its' way out.
... View more
05-10-2011
11:00 AM
|
0
|
0
|
1450
|
|
POST
|
I always do the try catch block as a matter of fact for every edit operation, I usually call abort operation in the catch block regardless of the error. This way in the case of any unforeseen error, I stop the operation without messing up the call stack. Any foreseen error, you are better off handling before it raises an error. I never use abort operation in event listeners raised inside the operation, for that I just throw my own exception and the esri framework aborts the operation and pops up a message.
... View more
05-10-2011
06:32 AM
|
0
|
0
|
816
|
|
POST
|
I know this is a long shot but I have had problems with the license in deployment if the mapcontrol was set to show preview in development environment. Turning that off in the map control properties helped.
... View more
04-15-2011
08:54 AM
|
0
|
0
|
625
|
| 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
|