|
AcDbLayerStateManager *pLayerState=new AcDbLayerStateManager(curDoc()->database());//建立 layerstate
pLayerState->saveLayerState(_T("defaultLayer"),AcDbLayerStateManager::kAll,AcDbObjectId::kNull);//命名保存
//put your code
pLayerState->restoreLayerState(_T("defaultLayer"));//恢复初始状态
pLayerState->deleteLayerState(_T("defaultLayer"));//删除
delete pLayerState;//删除 |
|