Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4331

[CONNECT C#] Update level attributes

$
0
0

I'm updating priority on existing levels to change the display order. The change is reflected in LevelManager but the information in the views are not affected until I click "Update levels from library" in the dialog.

I use the following code to update the level info:

Bentley.DgnPlatformNET.LevelHandle level = levelCache.GetLevelByName(LevelName);
Bentley.DgnPlatformNET.EditLevelHandle editHandle = level.GetEditHandle();
editHandle.DisplayPriority = newPriority;

Bentley.DgnPlatformNET.LevelCacheErrorCode errorCode;
errorCode = levelCache.Write();
// erroCode ok

Also, if I have my elements in a separate model, make my priority update,  the priority in LevelManager differs until I click "Update levels from library". All models share the same levels so how can the level attributes differ? Onöy the default model reflects my update. Still no effect on the actual elements until I click "Update levels from library".

Regards,

Krister


Viewing all articles
Browse latest Browse all 4331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>