1、先保证目前地图中有可编辑的图层,绘制点就是点图层可编辑,绘制线就是县图层可编辑,绘制面就是面图层可编辑;
2、然后通过代码设置绘制对应的对象;
UGMapEditorWnd->SetUserAction (UGC ::UGDrawParamaters ::uaEdit,UGC ::UGEditType ::ET_Point );
UGMapEditorWnd->SetUserAction (UGC ::UGDrawParamaters ::uaEdit,UGC ::UGEditType::ET_PolyLine);
UGMapEditorWnd->SetUserAction (UGC ::UGDrawParamaters ::uaEdit,UGC ::UGEditType::ET_PolyGon);
}