|
POST
|
You can create a new IStandaloneTable, set it's Table and Name properties and add it to the map via IStandaloneTableCollection. You could also just start your edit session using IWorkspaceEdit instead of using the Editor extension.
... View more
07-16-2012
10:08 AM
|
0
|
0
|
978
|
|
POST
|
No. The order of the points in the point collection match the order in which they appear in the polyline or polygon that they represent. For a polygon, outer rings will have points ordered clockwise and interior rings will have points ordered counter-clockwise.
... View more
07-16-2012
10:06 AM
|
0
|
0
|
548
|
|
POST
|
For i As Integer = 0 To pStTabColl.StandaloneTableCount The table index begins at 0, therefore you must stop your loop at Count -1. For i As Integer = 0 To pStTabColl.StandaloneTableCount -1
... View more
07-16-2012
05:08 AM
|
0
|
0
|
919
|
|
POST
|
I've never noticed any problems. In fact, most of the coordinates systems I work with regularly are based on NAD 83 or WGS 84. I don't do a lot of projecting though.
... View more
07-11-2012
05:00 AM
|
0
|
0
|
1725
|
|
POST
|
Use ICommandBar.Find to get a reference to the command item then call ICommandItem.Delete.
... View more
06-29-2012
05:19 AM
|
0
|
0
|
850
|
|
POST
|
Do you have error handling in your code? I don't see it in what you've posted. It's up to you as the developer to handle errors within your own code (that's not something that ArcMap could do for you). All of your code should be within Try/Catch blocks at points where exceptions would be thrown out to the ArcMap application. You should also place Try/Catch blocks within your call stack at points where it makes sense (where those points are is up to you). In the code you've posted, you're starting an edit operation without first starting an edit session. This isn't allowed. You must first called IEditor.StartEditing and pass in a reference to the workspace you want to edit. You can also preface that by checking IEditor.EditState to see if an edit session has already been started and then check IEditor.EditWorkspace to see if the edit session has been started on the workspace you want to edit. If the edit session has not been started, then you will need to start it yourself. If it has been started but on a different workspace then you should stop the current edit session and start a new one.
... View more
06-28-2012
10:18 AM
|
0
|
0
|
1133
|
|
POST
|
You can find most of them here: http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/ArcMap_commands/00010000029s000000/
... View more
06-28-2012
08:54 AM
|
0
|
0
|
2314
|
|
POST
|
Try using the actual GUID for the tool instead of the ProgId. {AD1891E4-7C79-11D0-8D7C-0080C7A4557D} I've run into problems using the ProgId.
... View more
06-28-2012
07:50 AM
|
0
|
0
|
2314
|
|
POST
|
As mentioned in the developer help, you can't use IFieldsEdit or IGeometryDefEdit to alter an existing feature class. In order to change the spatial reference of an existing feature class you should use IGeoDatasetSchemaEdit2.AlterSpatialReference.
... View more
06-28-2012
05:22 AM
|
0
|
0
|
1725
|
|
POST
|
Without seeing your code there's not much I can do. Be sure to use the CODE tags when posting your code (the # button on the toolbar) so that it formats correctly and is easier to read.
... View more
06-27-2012
12:16 PM
|
0
|
0
|
1650
|
|
POST
|
There's no such thing as a feature class that doesn't accept multi-part geometries, with the exception of a Point feature class (IPoint geometries cannot have more than one point). Please reread my post. Perhaps you should post your code and show what you're trying to do.
... View more
06-27-2012
11:20 AM
|
0
|
0
|
1650
|
|
POST
|
That isn't entirely accurate. The problem isn't that the geometry is multi-part; it's that the geometry type is incorrect. For example, if the feature class is a Polyline class then you can insert any geometry as long as it implements IPolyline. It doesn't matter how many segments the polyline contains or if the segments are not all connected (i.e. it's a multi-part polyline). You can't, however, insert a Line, EllipticArc, CircularArc, or one of the other line type geometries. It has to be IPolyline. You can check the geometry type expected by the feature class via IFeatureClass.ShapeType. Here is a breakdown of some common scenarios: esriGeometryPoint - geometry must implement IPoint esriGeometryMultiPoint - geometry must implement IMultiPoint esriGeometryPolyline - geometry must implement IPolyline esriGeometryPolygon - geometry must implement IPolygon
... View more
06-27-2012
11:01 AM
|
0
|
0
|
1650
|
|
POST
|
The document's active view will be either a map or a page layout so all you should need to do is check the type. If TypeOf My.ArcMap.Document.ActiveView Is IMap Then ' document is in Data view ElseIf TypeOf My.ArcMap.Document.ActiveView Is IPageLayout Then ' document is in Layout view End If I don't work with addins, but for a standard ICommand implementation it would look like the code below. There should be something similar for an addin. Public ReadOnly Property Enabled() As Boolean Implements ESRI.ArcGIS.SystemUI.ICommand.Enabled Get Dim mxDocument As IMxDocument = DirectCast(m_application.Document, IMxDocument) ' Enabled as long as the document is in Data view. Return (TypeOf mxDocument.ActiveView Is IMap) End Get End Property
... View more
06-27-2012
05:52 AM
|
0
|
0
|
917
|
|
POST
|
The spatial reference of a feature is determined by the feature class in which it is stored. If you get a feature out of a feature class and project its geometry into another coordinate system, you will change the coordinates and spatial reference of that geometry object. However, if you set the feature's geometry back to the projected geometry and store it, the feature will have updated coordinates but the spatial reference will remain that of the feature class. If you want to change the spatial reference of all of the features in the feature class, then you will also need to change the spatial reference of the feature class after you've projected them.
... View more
06-27-2012
05:31 AM
|
0
|
0
|
1725
|
|
POST
|
You can't cast a polygon to a polyline because they aren't the same thing. You need to extract the polygon boundary. You can do this via ITopologicalOperator.Boundary.
... View more
06-27-2012
05:21 AM
|
0
|
0
|
1002
|
| 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
|