POST
|
I've never created one as an add-in, but with the standard COM implementation the UserData property is something you can implement yourself. It can return anything you set it to return since it's typed as Object. In one implementation we've created, we return the user control. In this case, you can access the controls it houses via its Controls collection. In another implementation we return a custom object class we created to allow the passing of data via properties on that class. I would imagine with an add-in you could override the property to return whatever you want but I don't know that for sure.
... View more
06-03-2014
11:06 AM
|
0
|
0
|
6
|
POST
|
As far as I know, there is no comprehensive list that maps license levels to functionality. If your application has a requirement that it run under a certain license level then you should be developing and testing under that same license level. This will keep you from writing something that requires a higher license level.
... View more
05-30-2014
06:01 AM
|
0
|
0
|
14
|
POST
|
In VB, use TypeOf to test if an object implements a particular interface. In C# use Is. If TypeOf yourLayer Is IGroupLayer Then...it's a group layer. if (yourLayer is IGroupLayer) {...it's a group layer.
... View more
05-29-2014
10:14 AM
|
0
|
0
|
16
|
POST
|
Yes. While the terms themselves are not synonymous, in this case they all refer to the same identifier.
... View more
05-29-2014
10:10 AM
|
0
|
0
|
62
|
POST
|
It appears to be a bug. We have an application that uses the map control to display a preview. Even though the map shown in the map control is the map from the document, we create a deep copy of the map object before assigning it to the map control. I usually keep my scroll bars in ArcMap turned off. If I turn them on, switch to layout view then back to data view, the scroll bars remain visible. If I do the same thing with our dialog open, the scroll bars disappear when I return to data view. The map control has its scroll bars turned off. I'm not really sure why ArcMap would be picking up that property setting but it apparently does.
... View more
05-28-2014
06:42 AM
|
0
|
0
|
15
|
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
|
2
|
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
|
5
|
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
|
15
|
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
|
71
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|