Dim pdoc As IMxDocument Dim pmap As IMap Dim pfi As IFeatureLayer Dim pfc As IFeatureClass Set pdoc = ThisDocument Set pmap = pdoc.activeView.FocusMap Set pfi = pmap.Layer(1) Set pfc = pfi.FeatureClass MsgBox (" features: " & pfc.FeatureCount(Nothing))
how i can calculate the rows from a layer have "Page Definition Query" activated?i need the total of rows when the "Page Definition Query" is active and not the real total from the layer.i try with this code but dont work like i want, because this get all record the layer have. Dim pdoc As IMxDocument Dim pmap As IMap Dim pfi As IFeatureLayer Dim pfc As IFeatureClass Set pdoc = ThisDocument Set pmap = pdoc.activeView.FocusMap Set pfi = pmap.Layer(1) Set pfc = pfi.FeatureClass MsgBox (" features: " & pfc.FeatureCount(Nothing)) cheers.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.