|
POST
|
What path are you passing in? This interface, as mentioned in the developer help, is only available for personal, file, and sde geodatabases. So, if you're not passing in a path to a geodatabase then the cast will fail because the factory is not returning a class type that implements this interface.
... View more
03-26-2013
05:28 AM
|
0
|
0
|
457
|
|
POST
|
Use IQueryFilterDefinition on your query filter to set an ORDER BY clause on the query. You can also use ITableSort.
... View more
03-21-2013
05:13 AM
|
0
|
0
|
323
|
|
POST
|
What you are referring to are the printer margins. They should update automatically but since your code is automating ArcMap instead of running inside of it then some things may not work properly. ArcMap was never written to be automated so you might want to reconsider doing that if this problem persists. You can turn the print margins off via IPage:IsPrintableAreaVisible. Just set the property to False. Turning it off and then back on might cause it to update but I don't know for sure.
... View more
03-08-2013
10:49 AM
|
0
|
0
|
1185
|
|
POST
|
You can use ITableWindow to find the attribute window and hide it. Here's quick VBA example you can modify. Dim mxDoc As IMxDocument Set mxDoc = ThisDocument Dim layer As IFeatureLayer Set layer = mxDoc.FocusMap.layer(4) Dim tableWindow As ITableWindow Set tableWindow = New tableWindow Dim window As ITableWindow Set window = tableWindow.FindViaFeatureLayer(layer, True) If window Is Nothing Then MsgBox "Window is not visible" Else window.Show False End If
... View more
02-22-2013
05:35 AM
|
0
|
0
|
602
|
|
POST
|
What the query filter object does is build a SQL query using the property values you give it. It looks something like this: SELECT <subfields> FROM <tablename> WHERE <whereclause> It doesn't parse the property values you give it - it simply puts them into the query. Different data sources implement different flavors of SQL. What works in one may or may not work in another. The Subfields property is intended to be a simple list of field names. The fact that you can also add keywords such DISTINCT is simply a byproduct of how the object creates the SQL queries. Because it is not an intended use of the property, you should not include anything but field names in the list unless you can guarantee that your query will always execute against a data source that supports the keywords you are inserting. If you need to perform queries that do more than what the query filter object supports then you shouldn't use it. Instead, you can connect to the data source directly and execute the required queries (this is a non-ArcObjects approach). You can also use ArcObjects classes, such as IDataStatistics and IQueryFilterDefinition, that are specifically written for additional query support. There is also the IWorkspace.ExecuteSQL method which may be of some use in certain cases. ISqlSyntax may also be used to build queries for specific data sources. Hope this helps.
... View more
02-22-2013
04:46 AM
|
0
|
0
|
618
|
|
POST
|
It's because ESRI fixed a bug. Editing a row from a recycling cursor may not have thrown an exception at 9.3 but it was never something you should have been doing.
... View more
02-22-2013
04:29 AM
|
0
|
0
|
481
|
|
POST
|
The library you need to reference is listed at the top of the help pages for these interfaces. In this case, it is the Controls library.
... View more
02-22-2013
04:25 AM
|
0
|
0
|
704
|
|
POST
|
The Document class is an abstract class (see the legend for the OMD). Abstract classes cannot be instantiated. The only classes you can create new instances of are listed in the help topic for IDocument (such as MxDocument).
... View more
02-21-2013
11:40 AM
|
0
|
0
|
678
|
|
POST
|
I've looked at the developer help for 9.3.1, 10, and 10.1 and none of them list a class named DocumentClass that implements IDocument.
... View more
02-21-2013
11:14 AM
|
0
|
0
|
678
|
|
POST
|
By run directly I meant double-clicking it. In order to run the utility from the command line, the cmd window will need to be started as an administrator. To run it from an installer, the installer will have to run with elevated privileges. Also, you mentioned this was an add-in. Add-ins do not need to be registered; only the old-style COM components. All of our desktop extensions are COM so I have to run this utility in our installers as well. I have code in each installer class to run the utility. We then use WinRAR to create a self-extracting exe that contains the installer exe and msi. One of the settings on this self-extracting exe is to prompt to run with elevated privileges. We've never ran into any problems with the registration on machines that were properly configured but I don't know if any of them were running that OS.
... View more
02-20-2013
05:55 AM
|
0
|
0
|
3112
|
|
POST
|
Are you following the instructions outlined here? esriRegAsm is a command line utility but it sounds like you're trying to run it directly. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/ESRIRegAsm_utility/0001000004n6000000/
... View more
02-20-2013
05:18 AM
|
0
|
0
|
3112
|
|
POST
|
If you set the form's owner when you show it then all you should need to do is set the form's StartupPosition property to CenterParent. // set the form's owner yourForm.Show(System.Windows.Forms.Control.FromHandle((IntPtr)m_application.hWnd));
... View more
02-20-2013
05:05 AM
|
0
|
0
|
1059
|
|
POST
|
Outline step by step what you have to do through the ArcMap UI in order to accomplish what you're wanting to do and I'll see if I can translate that to code.
... View more
02-20-2013
04:59 AM
|
0
|
0
|
676
|
|
POST
|
An easier way to do this is to call IPolygon.ReverseOrientation on the polygon geometry.
... View more
02-20-2013
04:56 AM
|
0
|
0
|
841
|
| 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
|