您好!三维选中高亮显示获取选择集的代码如下:
Selection3D[] selection3Ds = sceneControl.Scene.FindSelection(true);
Selection3D selection3D = selection3Ds[0];
Recordset recordset = selection3D.ToRecordset();
三维根据记录集获取选择集使对象高亮显示代码如下:
Selection3D selection = layer3DDataset.Selection;
selection.Add(recordset.GetID());
layer3DDataset.Selection.UpdateData();
//将场景的视觉定义到图层范围
sceneControl.Scene.EnsureVisible(recordset.Bounds);