|
POST
|
Your ConstructOffset function returns a polyline. You're trying to set a line element equal to that polyline. That won't work as it is a type mismatch. You need to set your element's geometry to be the polyline returned by the ConstructOffset function.
... View more
09-24-2010
12:23 PM
|
0
|
0
|
878
|
|
POST
|
You're adding the same point object over and over. The For loop is just changing the coordinates of that one point object. geom = new PointClass(); This should be inside your For loop.
... View more
09-24-2010
10:19 AM
|
0
|
0
|
476
|
|
POST
|
ArcMap has to check it before display the objects in map. This isn't how it works. ArcMap executes the definition query against the data source and draws whatever features are returned by the query. It doesn't parse (or analyze) the query or anything like that. If you want to check to see if features with a certain attribute value are visible then one of the easiest ways is to just query the layer for them and see if you get anything back. If you don't get any results from your query, then none are visible. In order to do this, you need to use a Search method that is aware of the definition query. You can use IDisplayTable.SearchDisplayTable(), IGeoFeatureLayer.SearchDisplayFeatures() or IFeatureLayer.Search().
... View more
09-24-2010
05:18 AM
|
0
|
0
|
563
|
|
POST
|
The Geometry object classes fall into 2 categories: upper level geometry types and lower level geometry types. The upper level types are Point, MultiPoint, Polyline, and Polygon. The lower level types are classes such as Line, Segment, Path, and Ring. In many cases, high level ArcObjects interfaces and/or methods only work on high level geometries. The documentation usually tells you what will work. In this case, the method is named DrawPolyline (which is a good indicator) and the documentation states that it draws a Polyline object. It can get confusing sometimes though because the documentation is incorrect in some places. Again, in this instance the description of the DrawPolyline method on the IScreenDisplay interface help topic states it draws a line (instead of a polyline) whereas is states Polyline in the Remarks section on the actual method help topic. My general approach is to always read the help first. If it doesn't shed any light, then I try it with both a high level and a low level object and see what happens. The main thing is just to be aware that there are two classes of geometries so that when something like this happens you know to try a different geometry type.
... View more
09-23-2010
01:06 PM
|
0
|
0
|
859
|
|
POST
|
You're creating a Line instead of a Polyline. A Line and a Polyline are not the same thing and cannot be substituted one for the other. Try creating a new Polyline and adding the Line as a segment, then pass the Polyline to the DrawPolyline method.
... View more
09-23-2010
09:59 AM
|
0
|
0
|
859
|
|
POST
|
Looks like you're missing the ArcGIS Engine Developer license.
... View more
09-22-2010
11:51 AM
|
0
|
0
|
319
|
|
POST
|
From the developer help topic for IBufferConstruction.Buffer: Compatibility method for clients wishing to replace useages of ITopologicalOperator::Buffer. This method does not use the properties exposed in IBufferConstructionProperties. If you want it to respect the buffer properties you have set, then you'll need to use one of the other methods on the interface.
... View more
09-21-2010
10:02 AM
|
0
|
0
|
543
|
|
POST
|
The following is VB.NET. Public Shared Function GetStringValue(ByVal value As Object) As String
If value Is DBNull.Value Then
Return String.Empty
Else
Return Convert.ToString(value)
End If
End Function
... View more
09-20-2010
11:40 AM
|
0
|
0
|
3120
|
|
POST
|
Your code is creating a new snap agent and adding it to the snap environment. If there is already a snap agent for the layer then you need to get that snap agent and modify it instead of adding a new snap agent. You can do this by looping through the snap agents and checking the feature class and/or name until you find the one you're looking for.
... View more
09-20-2010
05:40 AM
|
0
|
0
|
971
|
|
POST
|
One more quick question. I have some Tools that when I click them, I need to change the SelectedItem in the ComboBox from the OnClick event of the tool. How do I access the ComboBox from the Tool?? I've set the Modifiers of the ComboBox to public, but I can't seem to get to it. Brian, what you'll need to do is add a property or method to the command class that gives you the functionality that you need. For instance, you might add a method called ChangeSelectedItem. From the tool that needs to update the combobox, use IDocument.CommandBars to get your tool control as an ICommandItem reference. Call ICommandItem.Command to get a reference to the underlying command class. From there, you can QI to your actual class type and call your method.
... View more
09-17-2010
04:28 AM
|
0
|
0
|
309
|
|
POST
|
You have to create the array and fill it with the ObjectIds of the features you want. If you don't know the ObjectIds then this isn't the method you need to use. In that case, you would query the feature class for the feature you want by using a query filter and calling IFeatureClass.Search.
... View more
09-14-2010
06:54 AM
|
0
|
0
|
422
|
|
POST
|
You'll need to start an edit session on the workspace that contains the related table(s).
... View more
09-14-2010
05:51 AM
|
0
|
0
|
876
|
|
POST
|
Since you mentioned this is an ArcGIS Engine application I would just make a copy of the mxd, open it in ArcMap, set the visibility and everything else like you want it, save it, and open this copy in the application.
... View more
09-14-2010
05:49 AM
|
0
|
0
|
351
|
|
POST
|
A polyline is a point collection, so you can add the points to the collection in the correct order. Dim polyline As IPolyline = New Polyline
Dim pointCollection As IPointCollection = polyline
pointCollection.AddPoint(point)
' repeat until all points are added
... View more
09-08-2010
06:28 AM
|
0
|
0
|
871
|
| 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
|