POST
|
Hi, I added TOC Control and Map Control on my form application using Engine 9.1 for VB.NET. And I added a Layer on map. The render of the layer is UniqueValue renderer. But the appearance of legend item on TOC is different from that of ArcMap. The height of TOC Control's Patch size is bigger than that of ArcMap's TOC. I tried to change patch size of TOC, but I couldn't. I started my code like this. Dim pUniqueValueRenderer As IUniqueValueRenderer = New UniqueValueRendererClass()
......
Dim legendInfo As ILegendInfo = pUniqueValueRenderer But I don't know how to code next. Would you help me? Any comment is available. Thank you. .
... View more
08-23-2011
01:05 AM
|
0
|
0
|
542
|
POST
|
Hi, I added TOC Control and Map Control on my form application. And I added a Layer on map. The render of the layer is UniqueValue renderer. But the appearance of legend item on TOC is different from that of ArcMap. The height of TOC Control's Patch size is bigger than that of ArcMap's TOC. I tried to change patch size of TOC, but I couldn't. I started my code like this. Dim legendInfo As ILegendInfo = pUniqueValueRenderer but I don't know how to code next. Would you help me? Any comment is available. Thank you.
... View more
08-21-2011
11:57 PM
|
0
|
0
|
509
|
POST
|
Thanks you, guys I resolved this problem for your helps. My code was changed something like below. Dim pSelected As IEnumFeature = m_Map.FeatureSelection Dim pFeature As IFeature = pSelected.Next() Dim pGeom As IGeometry = pFeature.Shape Dim pHitTest As IHitTest = pGeom Dim pHitPoint As IPoint = New Point pHitTest.HitTest(pPoint, tolerance, esriGeometryHitPartType.esriGeometryPartBoundary, pHitPoint, hitDist, partIndex, vertexIndex, bTrue) ...... Dim pPoints As IPointCollection = pGeom Dim Missing As Object = Type.Missing Dim val As Object If vertexIndex = 0 Then val = 1 pPoints.AddPoint(pHitPoint, val, Missing) Else val = vertexIndex pPoints.AddPoint(pHitPoint, Missing, val) End If pFeature.Shape = CType(pPoints, IGeometry) pFeature.Store() Of course, as dubravko's comment, I created function in my own code. Any Comment is OK. Thanks.
... View more
08-09-2011
07:43 PM
|
1
|
0
|
50
|
POST
|
Thanks for your reply. Then, conclusionally, can't I use snap function to sketch a line or a point? It's incredible!! Do I have to implement snapping programatically? Is there someone has snapping code? I seem to become to be crazy! Thanks anyway..
... View more
05-20-2011
12:01 AM
|
0
|
0
|
1
|
POST
|
Hi, there I am making an app using ArcGIS Engine 9.1 in VB.NET. I am coding some editing functionality, like draw polyline, point, polygon. But I don't know how to code snapping functionality. As I know, In standard App, It is imposible to use Editor Class. Therefor I can't cast IEditor to ISnapEnvironment. In ArcEngine 9.3, I could code snap function using IEngineEditor, But NOT In 9.1. Is there any way to use snap agent in my own application? Please give me a favor...
... View more
05-18-2011
12:15 AM
|
0
|
0
|
237
|
POST
|
Hi, John. Thanks for your rapid reply. For your kind help, everything is cleared. I'm very happy~~ Thanks again.
... View more
04-19-2011
07:16 PM
|
0
|
0
|
3
|
POST
|
Hi, All I am developing a application using ArcEngine VB.NET. I want to get polyline length dynamically in Map along moving mouse cursor. In create new feature task, I click one point in map control, then move mouse, then rubber band is stretched and the poyline length is changed. How can I get the length of polyline dynamically and then display the length in map?
... View more
04-12-2011
02:06 AM
|
0
|
0
|
736
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|