1,在运行时出现了ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS componen该问题时。
打开program.cs把ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine Or Desktop); 这句放到第一句就好了.
2, IActiveView 接口定义了Map对象的数据显示功能.使用该接口可以改变视图的范围,刷新视图.
IActiveView的PartialRefresh(esriViewGeography, pLayer, null)用于刷新指定图层;
IActiveView的PartialRefresh(esriViewGeography, null, null)用于刷新所有图层;
IActiveView的PartialRefresh(esriViewGeoSelection, null, null)用于刷新所选择的对象;
IActiveView的PartialRefresh(esriViewGraphics, null, null)用于刷新图形元素;
IActiveView的PartialRefresh(esriViewGraphics, pElement, null)用于刷新指定图形元素;
IActiveView的PartialRefresh(esriViewGraphicSelection, null, null)用于刷新所选择图形元素;
在ESRI.ArcGIS.esriSystem里面定义的,一般情况下,你可以直接使用tagRECT。其元数据定义如下:
namespace ESRI.ArcGIS.esriSystem
{
public struct tagRECT
{
public int bottom;
public int left;
public int right;

本文介绍了ArcGIS Engine 10.2开发中遇到的常见问题及其解决方案,包括RuntimeManager的绑定、IActiveView接口的使用、图形对象的导出方法、注册表错误及许可绑定问题,还提供了图层遍历的代码示例。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



