05 ラスター論理名が"bbb"の時ラスターをデタッチ


ラスター論理名が"bbb"の時ラスターをデタッチ

DgnRasterCollectionR rastersR = Raster::DgnRasterCollection::GetRastersR(ISessionMgr::GetActiveDgnModelRefP());

for (auto rasterP : rastersR)

{

WPrintfString wStr(L"Descrip= %s, Logical=%s",

                                               rasterP->GetDescription().GetWCharCP(),

                                               rasterP->GetLogicalName().GetWCharCP());

    mdlDialog_dmsgsPrint (wStr.GetWCharCP());

if (SUCCESS == wcscmp(rasterP->GetLogicalName().GetWCharCP(), L"bbb"))

      rasterP->DeleteFromModel();

}

ーーーーーーーー

ビュー1のラスター表示をオフ(false)にします。オン(true

rasterP->SetViewState(0,false);

mdlView_updateSingle( 0 );