选择二维后对应路段三维高亮显示 [已关闭]

0 投票
63 浏览

选择二维路段ID后对应路段三维高亮显示问题,三维路段未高亮显示。是不是Layer3DDataset layer3DDataset = m_sceneControl.Scene.Layers[4] as Layer3DDataset; 图层选择有问题?

 private void mapControllian_GeometrySelected(object sender, GeometrySelectedEventArgs e)
        {
            try
            {               
                Selection[] selection = mapControllian.Map.FindSelection(true);
                if (selection != null && selection.Length != 0)
                {
                    Recordset recordset = selection[0].ToRecordset();
                    object A = recordset.GetObject("ID");
                    C = A.ToString();
                    int x=Convert.ToInt32(C);
                    Layer3DDataset layer3DDataset = m_sceneControl.Scene.Layers[4] as Layer3DDataset;
                    Selection3D selection3D = layer3DDataset.Selection;                   
                    selection3D.Add(x);
                    layer3DDataset.Selection.UpdateData();                                      
                }
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex.Message);
            }
        }      

问题关闭原因: 123
最新提问 12月 21, 2018 分类:  63次浏览 | 用户: 1471817656 才疏学浅 (13 分)
已关闭 12月 24, 2018 用户:1471817656

1个回答

0 投票
您好!您在桌面idesktop打开看有没有?
最新回答 12月 21, 2018 用户: 胡延南 名扬四海 (2,464 分)
...