|
POST
|
The argument passed into the StopOperation method is the text that will appear in ArcMap as tooltips for the Undo/Redo buttons and the text for the Undo/Redo commands on the Edit menu.
... View more
10-26-2010
07:45 AM
|
0
|
0
|
326
|
|
POST
|
Are they uninstalling the old version before installing the new version?
... View more
10-25-2010
06:18 AM
|
0
|
0
|
351
|
|
POST
|
If you open the developer help to the ISurface.GetElevation method topic you'll find a link to the Get Elevation developer sample.
... View more
10-25-2010
06:14 AM
|
0
|
0
|
1218
|
|
POST
|
In the code editor, choose ContextMenu from the right-hand dropdown list and have it return False.
... View more
10-18-2010
12:37 PM
|
0
|
0
|
691
|
|
POST
|
If you're running this code in a standalone application then you need to check out a license prior to running any ArcObjects code. You also shouldn't be using New to create an instance of the workspace factory. A workspace factory is a singleton object and should be instantiated using the Activator class. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Interacting_with_singleton_objects/00010000043p000000/
... View more
10-07-2010
07:37 AM
|
1
|
2
|
1463
|
|
POST
|
You just need to check the type using Is in C#: If (layer Is IFeatureLayer) { // do something } ElseIf (layer Is IRasterLayer) { // do something } It would be nice if you could use a Switch block to do this instead of a bunch of Else/ElseIfs but I don't think you can do that.
... View more
10-06-2010
06:23 AM
|
0
|
0
|
416
|
|
POST
|
http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.90).aspx
... View more
10-06-2010
06:10 AM
|
0
|
0
|
631
|
|
POST
|
If you wrote a tool in C# and the client machine doesn't have the .NET Framework installed then it will not work.
... View more
10-05-2010
05:02 AM
|
0
|
0
|
631
|
|
POST
|
Have you tried accessing the config settings using the built-in .NET functionality? The .NET runtime reads the application config file for you and provides an easy way to access the settings. In VB.NET, you can access the config settings using My.Settings.<setting>, where <setting> is the name of the config setting you want. In C#, this can be done using Properties.Settings.Default.<setting>.
... View more
10-04-2010
06:18 AM
|
0
|
0
|
990
|
|
POST
|
The following code will get connection info for relates and joins. It was written specifically for SDE data so you'll want to remove the check for remote databases. The first snippet loops through Relates and the second loops through Joins. ' Get connections for related tables.
Dim relClassCollection As IRelationshipClassCollection = CType(featureLayer, IRelationshipClassCollection)
Dim enumRelClass As IEnumRelationshipClass = relClassCollection.RelationshipClasses
Dim relClass As IRelationshipClass = enumRelClass.Next
Do While relClass IsNot Nothing
Dim dataset As IDataset = CType(relClass.DestinationClass, IDataset)
Dim workspace As IWorkspace = dataset.Workspace
If workspace.Type = esriWorkspaceType.esriRemoteDatabaseWorkspace Then
If TypeOf dataset.FullName Is IDatasetName Then
Dim dataLayer As IDataLayer = CType(featureLayer, IDataLayer)
Dim datasetName As IDatasetName = CType(dataLayer.DataSourceName, IDatasetName)
Dim workspaceName As IWorkspaceName = datasetName.WorkspaceName
Dim connectionInfo As ConnectionInfo = New ConnectionInfo(workspaceName.ConnectionProperties)
If Not m_connections.Contains(connectionInfo) Then m_connections.Add(connectionInfo)
End If
End If
relClass = enumRelClass.Next
Loop
' Get connections for joined tables.
Dim displayTable As IDisplayTable = CType(featureLayer, IDisplayTable)
Dim table As ITable = displayTable.DisplayTable
Do While TypeOf table Is IRelQueryTable
Dim relQueryTable As IRelQueryTable = CType(table, IRelQueryTable)
Dim destinationTable As ITable = relQueryTable.DestinationTable
Dim dataset As IDataset = CType(destinationTable, IDataset)
Dim workspace As IWorkspace = dataset.Workspace
If workspace.Type = esriWorkspaceType.esriRemoteDatabaseWorkspace Then
If TypeOf dataset.FullName Is IDatasetName Then
Dim dataLayer As IDataLayer = CType(featureLayer, IDataLayer)
Dim datasetName As IDatasetName = CType(dataLayer.DataSourceName, IDatasetName)
Dim workspaceName As IWorkspaceName = datasetName.WorkspaceName
Dim connectionInfo As ConnectionInfo = New ConnectionInfo(workspaceName.ConnectionProperties)
If Not m_connections.Contains(connectionInfo) Then m_connections.Add(connectionInfo)
End If
End If
table = relQueryTable.SourceTable
Loop
... View more
09-30-2010
09:19 AM
|
0
|
0
|
645
|
|
POST
|
You're using the HARN PCS which probably isn't the VA State Plane that you want. Since you're needing to project your coordinates into the PCS of the map, then just get the spatial reference of the map instead of creating it using the spatial reference environment. This will make your code work no matter what spatial reference the map is in. You'll still need to create the GCS according to whatever system your input coordinates are in. Unless, of course, you're getting those from a feature class or something that also has a spatial reference (in which case, just get the SR from that instead of creating it). As for your error, try using SpatialReferenceEnvironment (without the Class on the end).
... View more
09-29-2010
10:55 AM
|
0
|
0
|
1598
|
|
POST
|
I believe the MapControl no longer comes with ArcGIS Desktop and that you need an ArcGIS Engine developer license.
... View more
09-29-2010
08:37 AM
|
0
|
0
|
474
|
|
POST
|
The FeatureClass class implements IDataset, which has a Workspace property that returns the workspace the feature class belongs to.
... View more
09-29-2010
08:35 AM
|
0
|
0
|
806
|
|
POST
|
Have you used the Connect to Folder button in ArcCatalog to connect to your D:\ drive? If not, that's probably the problem.
... View more
09-29-2010
06:04 AM
|
0
|
0
|
574
|
|
POST
|
You can use ITableSort to get a sorted cursor from the table.
... View more
09-28-2010
11:11 AM
|
0
|
0
|
1309
|
| 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
|