Private Sub UIButtonControl1_Click() '編集セッションで[属性]ウィンドウ表示時、コードでフィーチャを選択してもウィンドウに属性値が表示されない。これを更新するには、ISelectionEvents::SelectionChangedのキックが必要 'http://forums.esri.com/thread.asp?c=93&f=992&t=118750 'http://forums.esri.com/thread.asp?c=93&f=993&t=245826 Dim pID As New UID pID = "esriEditor.Editor" Dim pApplication As IApplication Set pApplication = Application Dim pEditor As IEditor Set pEditor = pApplication.FindExtensionByCLSID(pID) Dim pMxDocument As IMxDocument Set pMxDocument = ThisDocument Dim pFeatureSelection As IFeatureSelection Set pFeatureSelection = pMxDocument.FocusMap.Layer(0) pFeatureSelection.Clear pFeatureSelection.SelectionSet.Add 1 'OID:1のフィーチャを選択 'ISelectionEvents::SelectionChangedをキック Dim pSelectionEvents As ISelectionEvents Set pSelectionEvents = pMxDocument.FocusMap pSelectionEvents.SelectionChanged pMxDocument.ActiveView.Refresh End Sub
編集セッションでフィーチャ選択時に属性ウィンドウに属性を表示
2016/9/1 (木)