POST
|
I would imagine that you will have to set it on the layer itself using IFeatureLayer.SpatialReference.
... View more
05-28-2014
05:15 AM
|
0
|
0
|
156
|
POST
|
There are several things wrong with this line of code: pFBuffer.Value(pFBuffer.Fields.FindField(i)) = pFeat.Value(pFeat.Fields.FindField(i)) First and foremost, the FindField method takes a field name for a parameter. You're passing in a field index. Second, you don't need to call FindField on both the feature and the feature buffer. Last, you should always check the field index returned by FindField to make sure it isn't -1 (which means the field was not found). Your code should look something like this. I just typed this in off the top of my head so you may have to tweak it some. For i = 0 To pFBuffer.Fields.FieldCount - 1 Dim field as IField = pFBuffer.Fields.Field(i) Dim fieldName as String = field.Name If field.Editable Then Dim index as Int32 = pFeat.Fields.FindField(fieldName) If index <> -1 Then pFBuffer.Value(i) = pFeat.Value(index) End If Next i
... View more
05-22-2014
09:24 AM
|
0
|
0
|
239
|
POST
|
Without seeing your code I can only guess but it sounds like you've set the map for your map control to the document's map. Something like this: mapControl.Map = document.FocusMap. If so, then the behavior you are seeing is what you should expect to happen. Both ArcMap and your map control are using the same map, so if you change it in any way you should see those changes in both. To prevent this, you need to set your map control to use a copy of the map from the document. You can do this using IObjectCopy.
... View more
05-22-2014
06:53 AM
|
0
|
0
|
457
|
POST
|
Sorry, yes. I meant IDataset instead of IGeoDataset.
... View more
05-16-2014
05:25 AM
|
0
|
0
|
842
|
POST
|
QI from IFeatureClass to IGeoDataset and get the workspace from there instead of going through the feature dataset. Dim workspace As IWorkspace = DirectCast(featureClass, IGeoDataset).Workspace In C# that would be something like this: IWorkspace workspace = (featureClass As IGeoDataset).Workspace
... View more
05-15-2014
07:28 AM
|
0
|
0
|
842
|
POST
|
ESRI fixes a lot of things behind the scenes with each version release. I can't say why they made this change in particular but I would guess it was an application design decision. They realized calling Shutdown didn't prompt to save changes so they changed it so that it does (unless you clear the dirty flag). Again, that's just speculation.
... View more
05-13-2014
11:21 AM
|
0
|
0
|
287
|
POST
|
You have to instantiate the variable pDirty before you can use it.
... View more
05-12-2014
11:45 AM
|
0
|
0
|
287
|
POST
|
Before calling Shutdown, try calling IDocumentDirty2.SetClean.
... View more
05-12-2014
05:39 AM
|
0
|
0
|
287
|
POST
|
You're binding call is set to Engine or Desktop. Try changing that to Desktop only. The way you have it now it could be binding to the Engine product, which doesn't include the interface you're trying to use.
... View more
05-07-2014
07:16 AM
|
0
|
0
|
705
|
POST
|
Is your Engine application binding to the Desktop product and checking out a Desktop license?
... View more
05-07-2014
06:37 AM
|
0
|
0
|
705
|
POST
|
The reason for the error is clear - you're trying to use a Desktop-only interface in an Engine application. If the only thing you have installed on the target machine is the Engine runtime then that interface is not there because Engine doesn't install it.
... View more
05-07-2014
06:13 AM
|
0
|
0
|
705
|
POST
|
ICalculator is a Desktop interface. It is not installed by the Engine product. This is the case with any interface or class that is part of an ArcObjects library whose name ends with UI.
... View more
05-02-2014
10:55 AM
|
0
|
0
|
705
|
POST
|
Where is the data for those layers located? If it's on a server, make sure those users have permissions to access the data location. If the data is local but is in a location created by you, make sure other users can see that location (Windows sometimes hides things you create from other users on the machine, depending on how you have permissions set up). Another thing to try is to have the other users create a folder connection in ArcCatalog to the folder where the data is located. I've seen that clear things up in past versions.
... View more
05-01-2014
10:23 AM
|
0
|
0
|
283
|
POST
|
Supporting multiple versions of ArcGIS is relatively easy if you do it right. Basically, you need to compile your code for each supported version. We use a build server along with Jenkins and ANT scripts to automate our builds but that's a lot of work to setup if you've never done it before. Another way is to use virtual machines, one for each supported version of ArcGIS. We keep our repository in source control at the oldest version of ArcGIS that we support and do all of our development in that version. If you use Git for source control then you can create a development branch for each supported version. Do your development in the lowest version branch and push those changes to each of the other branches. Your master branch would be your release version so only push changes to it when you're ready to deploy a version. To make a build for any particular version, simply check out the appropriate branch on the VM for that version and compile. You can use other source control software of course, but Git makes this very easy.
... View more
04-28-2014
05:35 AM
|
1
|
0
|
216
|
POST
|
Not sure about the page layout control, but certain keys do not fire the key up and key down events in Windows forms. These keys usually fire the key press event. Try the events exposed by the form that houses your control.
... View more
04-28-2014
05:23 AM
|
0
|
0
|
126
|
Title | Kudos | Posted |
---|---|---|
1 | 06-20-2014 05:29 AM | |
1 | 02-01-2011 04:18 AM | |
1 | 02-04-2011 04:15 AM | |
1 | 01-17-2014 03:57 AM | |
1 | 10-07-2010 07:37 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|