|
POST
|
If you're setting your own symbol for the tool then you'll need to set the ROP2 property to NotXorPen. symbol.ROP2 = esriRasterOpCode.esriROPNotXOrPen
... View more
08-16-2010
05:48 AM
|
0
|
0
|
789
|
|
POST
|
In the ESRI .NET SDK there is a sample called ExportActiveView. Have you tried running the C# version of this sample?
... View more
08-13-2010
01:05 PM
|
0
|
0
|
789
|
|
POST
|
Have you tried setting IZAware.ZAware to False after dropping the z values?
... View more
08-13-2010
06:39 AM
|
0
|
0
|
1141
|
|
POST
|
I'm guessing you mean you want to know how to get a reference to the workspace that a feature comes from? If so, Dim objectClass As IObjectClass Set objectClass = feature.Class Dim dataset As IDataset Set dataset = objectClass Dim workspace As IWorkspace Set workspace = dataset.Workspace
... View more
08-13-2010
05:12 AM
|
0
|
0
|
897
|
|
POST
|
It was typical in VB6 to use the Package and Deployment Wizard to create installers for ArcGIS customizations. ESRI had a VS addin that would create a *.reg file that you could use to register all of your classes. To unregister all of the classes you would create a copy of this file and modify it to unregister (put a minus in front of all of the registry keys). After you create the installer for your new .NET version of the application, just have it merge this "unregister" file into the registry.
... View more
08-12-2010
04:35 AM
|
0
|
0
|
10416
|
|
POST
|
Do your command classes have the proper ESRI component registration code in them? It looks like ArcMap is not able to find your command classes, which could be a sign that they aren't registered with ArcMap.
... View more
08-12-2010
04:16 AM
|
0
|
0
|
1689
|
|
POST
|
I've never tried it but have you tried just copying the whole thing: Set IGeoFeatureLayerB.AnnotationProperties = IGeoFeatureLayerA.AnnotationProperties If that seems to work then you'll really want to make a deep copy of the collection so that the two layers aren't sharing the same object reference: Dim oc As IObjectCopy Set oc = New ObjectCopy Set IGeoFeatureLayerB.AnnotationProperties = oc.Copy(IGeoFeatureLayerA.AnnotationProperties)
... View more
07-23-2010
04:25 AM
|
0
|
0
|
854
|
|
POST
|
The feature being deleted is passed into the event. There's no need to loop through the editor's feature selection as you already have a reference to the feature being deleted. Private Sub EditEvents_OnDeleteFeature(ByVal obj As IObject) obj is the feature object being deleted. Check its type, and if it's a point, do what you need to do with it.
... View more
07-14-2010
05:07 AM
|
0
|
0
|
385
|
|
POST
|
You can change the spatial reference of a feature class, however it must be inside of a feature dataset. Use IGeoDatasetSchemaEdit2::AlterSpatialReference to change the spatial reference of the feature dataset. This will change the spatial reference of any feature classes inside the feature dataset. As Alex mentioned, this will not project the features inside the feature class. If you need to do that, then you will need to loop through all of the features and project the geometries. I don't know that there's any way to change the spatial reference of a standalone feature class.
... View more
07-06-2010
04:21 AM
|
0
|
0
|
678
|
|
POST
|
The SubFields property and AddField method work as documented. The SubFields property is a comma-delimited list of field names which is set to "*" by default. "*" is standard SQL for all fields. AddField adds a field name to this list. If you call AddField when SubFields is set to "*", then it does nothing because adding a field to the list when it's already set for all fields would be redundant. If you set the SubFields property to a single field name or a comma-delimited list of field names, then call AddField, it will add that field to the list (see Kirk's example above).
... View more
07-02-2010
04:34 AM
|
0
|
0
|
569
|
|
POST
|
The Table coclass does not implement IStandAloneTable, which is why you're getting the error. To add a standalone table to the map, you have to create a new one and set its Table property. It's basically the same thing you do when you want to add a feature layer - create a new feature layer and set its FeatureClass property.
... View more
06-30-2010
04:36 AM
|
0
|
0
|
1305
|
|
POST
|
Actually you can. Double-clicking the mxd in Windows Explorer is pretty much the same thing as starting ArcMap from the command line and passing in the path to the mxd as an argument. You can do this in Visual Studio by opening the Project Properties and selecting the Debug tab. Set the Start Action to Start External Program (browse to ArcMap.exe). Under Start Options add the full path to the mxd in the Command Line Arguments box. Enclose the path to the mxd in double quotes. These instructions are for VS2008; other versions may be different.
... View more
06-16-2010
12:41 PM
|
0
|
0
|
481
|
|
POST
|
Below is the code from a Windows service that I wrote a while back. I fully qualified the class names to avoid confusion with the old Geoprocessor class in the Geoprocessing library. ESRI.ArcGIS.ConversionTools.FeatureClassToFeatureClass fcToFcTool = new ESRI.ArcGIS.ConversionTools.FeatureClassToFeatureClass();
fcToFcTool.in_features = featureLayer;
fcToFcTool.out_path = outputDirectory;
fcToFcTool.out_name = newTableName;
if (!string.IsNullOrEmpty(query))
fcToFcTool.where_clause = query;
Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();
gp.Execute(fcToFcTool, null);
... View more
06-16-2010
12:19 PM
|
0
|
0
|
2057
|
|
POST
|
Yes you can create dockable windows without the MapControl. A dockable window can house whatever controls you would like for it to have. If you're asking can you show a map in a dockable window without using a MapControl then the answer to that is also yes but it's a little complicated. Basically, you have to use another control (such as a PictureBox or Panel) and activate the map (as an ActiveView) on that control's device context. However, I'm curious as to how you don't have the MapControl. It comes with ArcGIS Desktop. Did you not install the Desktop SDK?
... View more
06-10-2010
04:45 AM
|
0
|
0
|
567
|
|
POST
|
Eric, if you follow the link in my signature to our company blog you'll find an entry that addresses the issue of showing modeless dialogs using .NET. I'm not sure if it will correct the issue with centering the dialog so let me know how it goes.
... View more
06-10-2010
04:31 AM
|
0
|
0
|
1158
|
| 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
|