Public Sub ClearLineage() Dim pGxApp As IGxApplication Dim pGxView As IGxView Dim pMD As IMetadata Dim pPS As IPropertySet Dim dNow As Date Set pGxApp = Application Set pMD = pGxApp.SelectedObject Set pPS = pMD.Metadata pPS.RemoveProperty "Esri/DataProperties/lineage/Process" pPS.SetProperty "Esri/SyncOnce", "TRUE" dNow = Now pPS.SetProperty "Esri/ModDate", Format(dNow, "yyyymmdd") pPS.SetProperty "Esri/ModTime", Format(dNow, "HhNnSs") & "00" pMD.Metadata = pPS Set pGxView = pGxApp.View If TypeOf pGxView Is IGxDocumentationView Then pGxView.Refresh End If MsgBox "Done" End Sub
メタデータの不要項目削除
2016/9/1 (木)