添加代码如下:
Recordset recordset = datasetVector.GetRecordset(false, CursorType.Dynamic);
Dictionary<string, object> dic = new Dictionary<string, object>();
dic.Add("id", name);
recordset.AddNew(geometry3D, dic);
recordset.Update();
获取代码如下:
public void sceneControl_ObjectSelected(object sender, ObjectSelectedEventArgs e)
{
SceneControl sceneControlSelect = (SceneControl)sender;
Selection3D[] selection3dList = sceneControlSelect.Scene.FindSelection(true);//获取选中集合
Selection3D seletion3D = selection3dList[0];
if (seletion3D != null)
{
Layer3DDataset layer3DDataset = seletion3D.Layer as Layer3DDataset;
Recordset re = seletion3D.ToRecordset();
}
}