0
在ArcMap中任何圖層只能通過右鍵選擇 - >選擇 - >使其成爲唯一選擇圖層。 我想通過ArcMap API以編程方式執行此操作。我是arcgis的新手。如何製作圖層只能在ArcMap中通過API
在ArcMap中任何圖層只能通過右鍵選擇 - >選擇 - >使其成爲唯一選擇圖層。 我想通過ArcMap API以編程方式執行此操作。我是arcgis的新手。如何製作圖層只能在ArcMap中通過API
我已經以這種方式解決了這個:很簡單solutin,我是在ArcGIS新手
private void MakeOnlySelectableLayer(IFeatureLayer stationFeatureLayer)
{
var Focusmap = ArcMap.Document.FocusMap;
for (int i = 0; i < Focusmap.LayerCount; i++)
{
if (Focusmap.get_Layer(i) is IFeatureLayer)
{
IFeatureLayer layer = (IFeatureLayer)Focusmap.get_Layer(i);
if (stationFeatureLayer != null && !stationFeatureLayer.Equals(layer))
{
layer.Selectable = false;
}
}
}
}