ユーティリティ ネットワーク解析でフラグが設定されたフィーチャを特定する方法

 2016/9/1 (木)    

Dim pUID As UID
Set pUID = New UID
pUID.Value = "esriEditorExt.UtilityNetworkAnalysisExt"
 
Dim pNetworkAnalysisExt As INetworkAnalysisExt
Set pNetworkAnalysisExt = Application.FindExtensionByCLSID(pUID)
 
Dim pNetworkAnalysisExtFlags As INetworkAnalysisExtFlags
Set pNetworkAnalysisExtFlags = pNetworkAnalysisExt
 
Dim i As Long
For i = 0 To pNetworkAnalysisExtFlags.EdgeFlagCount - 1 'JunctionFlagCount - 1
     
    Dim pFlagDisplay As IFlagDisplay
'    Set pFlagDisplay = pNetworkAnalysisExtFlags.JunctionFlag(i) 'ジャンクション
    Set pFlagDisplay = pNetworkAnalysisExtFlags.EdgeFlag(i)     'エッジ
     
    Debug.Print pFlagDisplay.FeatureClassID, pFlagDisplay.FID
 
Next i

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.