AE二次开发之缓冲区分析
个人学习使用
public override void OnMouseDown(int Button, int Shift, int X, int Y)
{
if (Button != 1 || m_hookHelper.FocusMap.LayerCount <= 0)
return;
IActiveView pActiveView = m_hookHelper.ActiveView;
IGraphicsContainer pGraCont = (IGraphicsContainer)pActiveView;
//删除地图上添加的所有Element
pGraCont.DeleteAllElements();
//获得点击位置并转化为点图形要素
IPoint pPoint = pActiveView.ScreenDisplay.DisplayTransformation.