POST
|
Hi... I have not used this code for switching but I have tested the licence prior to launching an app. Have a look at http://resources.esri.com/help/9.3/arcgisdesktop/arcobjects/esrisystem/iaoinitialize_initialize_example.htm Colin
... View more
11-27-2011
07:53 PM
|
0
|
0
|
160
|
POST
|
'Some code to illustrate Public Sub FlashIt() Dim pDoc As IMxDocument Dim pLayer As IFeatureLayer Dim pFeat As IFeature Dim pFeatureSeln As IFeatureSelection Dim pSelectionSet As ISelectionSet Dim pCursor As IFeatureCursor Dim aa As Integer Set pDoc = ThisDocument Set pLayer = pDoc.FocusMap.Layer(0) Set pFeatureSeln = pLayer ShowTable pLayer Set pSelectionSet = pFeatureSeln.SelectionSet pSelectionSet.Search Nothing, True, pCursor Set pFeat = pCursor.NextFeature aa = 0 Do Until pFeat Is Nothing aa = aa + 1 If (aa = 4) Then FlashFeature pFeat ' Highlight pFeat Rather than flash this feature I would like to highlight it in the End If Set pFeat = pCursor.NextFeature Loop End Sub Private Sub ShowTable(pLayer As ILayer) Dim pTabWin As ITableWindow Set pTabWin = New TableWindow Set pTabWin.FeatureLayer = pLayer Set pTabWin.Application = Application pTabWin.ShowSelected = True pTabWin.TableSelectionAction = esriNoAction pTabWin.Show True End Sub Private Sub FlashFeature(pFeature As IFeature) Dim pMxApp As IMxApplication Dim pIdObj As IIdentifyObj Dim pFeatIdObj As IFeatureIdentifyObj Set pMxApp = Application Set pFeatIdObj = New FeatureIdentifyObject pFeatIdObj.Feature = pFeature Set pIdObj = pFeatIdObj pIdObj.Flash pMxApp.Display End Sub
... View more
11-22-2011
05:37 PM
|
0
|
0
|
343
|
POST
|
Hi Grieck Thanks for the reply. I have been elsewhere. The snip you left works fine and it gave me some ideas but it highlights the field. I was wanting to highlight the feature (row) using the secondary selection colour. Colin
... View more
11-22-2011
03:33 PM
|
0
|
0
|
343
|
POST
|
I have written a basic feature classs editor that loops through selected features editing attributes one at a time. I was hoping to highlight the current feature from the selected features. A simple process to do by hand. I already set properties and show the attribute table via ITableSelectionColor ITableProperty ITableProperties and ITableWindow. Does anyone know a method to highlight a feature in an attribute table of seleted features?
... View more
10-18-2011
09:14 PM
|
0
|
5
|
658
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|