element.QueryBounds报The method or operation is not implemented异常

private IEnvelope GetGraphicsExtent(IActiveView docActiveView)  
        {  
             
            IEnvelope GraphicsBounds;  
            IEnvelope GraphicsEnvelope;  
            IGraphicsContainer oiqGraphicsContainer;  
            IPageLayout docPageLayout;  
            IDisplay GraphicsDisplay;  
            IElement oiqElement;  
            GraphicsBounds = new EnvelopeClass();  
            GraphicsEnvelope = new EnvelopeClass();  
            docPageLayout = docActiveView as IPageLayout;  
            GraphicsDisplay = docActiveView.ScreenDisplay;  
            oiqGraphicsContainer = docActiveView as IGraphicsContainer;  
            oiqGraphicsContainer.Reset();  
            oiqElement = oiqGraphicsContainer.Next();  
            while (oiqElement != null)  
            {  
                oiqElement.QueryBounds(GraphicsDisplay, GraphicsEnvelope);  
                GraphicsBounds.Union(GraphicsEnvelope);  
                oiqElement = oiqGraphicsContainer.Next();  
            }  
            return GraphicsBounds;  
        } 

问题:
1.在产出专题图时,获取整个图层范围,使用了这个方法,在对element遍历获取范围时报了The method or operation is not implemented异常。
2.由于本地环境产图有内存溢出问题,所以没法对异常调试,只知道在产出该图时出现这个异常,其它专题图产出正常。
 
已邀请:

要回复问题请先登录注册